Skip to main content

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

DataGridView.GetRowSourceIndex(Int32) Method

Gets the index of the data source record to which the specified row handle corresponds.

Namespace: DevExpress.Maui.DataGrid

Assembly: DevExpress.Maui.DataGrid.dll

NuGet Package: DevExpress.Maui.DataGrid

#Declaration

C#
public int GetRowSourceIndex(
    int rowHandle
)

#Parameters

Name Type Description
rowHandle Int32

The grid’s row handle.

#Returns

Type Description
Int32

A zero-based index of the data record to which the specified row handle corresponds.

#Remarks

To get a row handle by its index in the data source, use the DataGridView.GetRowHandle method.

See Also