The requested page is not available for the requested platform. You are viewing the content for .NET Framework 4.5.2+ platform.
.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+

XafDataView.IndexOf(Object) Method

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

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v19.2.dll

Declaration

public int IndexOf(
    object obj
)
Public Function IndexOf(
    obj As Object
) As Integer
public int IndexOf(
    object obj
)
Public Function IndexOf(
    obj As Object
) As Integer
public int IndexOf(
    object obj
)
Public Function IndexOf(
    obj As Object
) As Integer

Parameters

Name Type Description
obj Object

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

Parameters

Name Type Description
obj Object

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

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.

Returns

Type Description
Int32

An integer which is a data record index.

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