Skip to main content
.NET Framework 4.5.2+

XafDataView.Item[Int32] Property

Gets the data record at the specified index.

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v22.2.dll

NuGet Package: DevExpress.ExpressApp


public XafDataViewRecord this[int index] { get; }


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