Skip to main content

CustomColumnSortEventArgs.ListSourceRowIndex1 Property

Gets the index in the data source of the first of the two rows being compared.

Namespace: DevExpress.XtraGrid.Views.Base

Assembly: DevExpress.XtraGrid.v23.2.dll

NuGet Packages: DevExpress.Win.Grid, DevExpress.Win.Navigation

Declaration

public int ListSourceRowIndex1 { get; }

Property Value

Type Description
Int32

An integer value representing the index of the first row in the data source. Row handles are not data source indexes, see the Accessing Rows in Code. Row Handles section of the “Rows” article for more information.

Remarks

Row indexes allow you to identify rows, and so obtain row values in the data source. Use the methods of your data source to get the row objects by their indexes, and then obtain row values. Alternatively, row values can be retrieved via the ColumnView.GetListSourceRowCellValue method.

The values in the current column that are being compared are specified by the CustomColumnSortEventArgs.Value1 and CustomColumnSortEventArgs.Value2 parameters.

See Also