Skip to main content
.NET Framework 4.6.2+

XafDataView.Item[Int32] Property

Gets the data record at the specified index.

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v24.2.dll

NuGet Package: DevExpress.ExpressApp

Declaration

public XafDataViewRecord this[int index] { get; }

Parameters

Name Type Description
index Int32

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.

Remarks

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