Skip to main content
A newer version of this page is available. .

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.v19.1.dll

Declaration

public int ListSourceRowIndex1 { get; }

Property Value

Type Description
Int32

An integer value representing the index of the first row in the data source.

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.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ListSourceRowIndex1 property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also