Skip to main content

CustomColumnSortEventArgs.ListSourceRowIndex2 Property

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

Namespace: DevExpress.XtraGrid.Views.Base

Assembly: DevExpress.XtraGrid.v24.2.dll

Declaration

public int ListSourceRowIndex2 { get; }

Property Value

Type Description
Int32

An integer value representing the index in the data source of the second row. 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