Skip to main content
.NET Framework 4.6.2+

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

XafDataView.IndexOf(Object) Method

Determines the index of a specific data record in the XafDataView.

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v24.2.dll

NuGet Package: DevExpress.ExpressApp

#Declaration

public int IndexOf(
    object obj
)

#Parameters

Name Type Description
obj Object

A Object which is a data record to locate in the data view.

#Returns

Type Description
Int32

An integer which is a data record index.

#Remarks

This method retrieves data from the database and populates the data view’s records list if this list is not yet initialized. Otherwise, the cached data records list is used. To remove the cache, use the XafDataView.Reload method.

See Also