XafDataView.Item[Int32] Property

Gets the data record at the specified index.

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v18.2.dll

Declaration

public XafDataViewRecord this[int index] { get; }
Public ReadOnly Property Item(index As Integer) As XafDataViewRecord

Parameters

Type Name Description
Int32 index

An integer which is the zero-based index of the data record to get.

Property Value

Type Description
XafDataViewRecord

An XafDataViewRecord object that is the data record at the specified index.

This property provides the capability to access a specific element in the XafDataView by using the following syntax:dataView[index]When you get this property value, the data view records list is retrieved from the database if this list is not yet initialized. Otherwise, the cached data records list is used. To remove the cache, use the XafDataView.Reload method.

When you set this property value, an exception is thrown because the data records list is readonly.

See Also