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

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

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

#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