.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+

XafDataView.Item[Int32] Property

Gets the data record at the specified index.

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v20.2.dll


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


Name Type Description
index Int32

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

Property Value

Type Description

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