Back to Devexpress

PivotCustomFieldSortEventArgs.ListSourceRowIndex2 Property

wpf-devexpress-dot-xpf-dot-pivotgrid-dot-pivotcustomfieldsorteventargs-dot-listsourcerowindex2.md

latest2.4 KB
Original Source

PivotCustomFieldSortEventArgs.ListSourceRowIndex2 Property

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

Namespace : DevExpress.Xpf.PivotGrid

Assembly : DevExpress.Xpf.PivotGrid.v25.2.dll

NuGet Package : DevExpress.Wpf.PivotGrid

Declaration

csharp
public int ListSourceRowIndex2 { get; }
vb
Public ReadOnly Property ListSourceRowIndex2 As Integer

Property Value

TypeDescription
Int32

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

|

Remarks

You can use the ListSourceRowIndex2 property in your sorting algorithm to compare values contained in another column instead of the current column values.

The ListSourceRowIndex2 is the index of the record in the data source that provides data for the current PivotGrid field and whose value for the e.Field.FieldName column equals the PivotCustomFieldSortEventArgs.Value2 value. To get another column’s value, call the e.GetListSourceColumnValue method with the ListSourceRowIndex1 and the column name as the parameters.

Note

When the PivotGridControl.CustomFieldSort event fires for the field values in the Filter Drop-Down, the ListSourceRowIndex1 and ListSourceRowIndex2 properties are always -1.

See Also

GetListSourceColumnValue(Int32, String)

PivotCustomFieldSortEventArgs Class

PivotCustomFieldSortEventArgs Members

DevExpress.Xpf.PivotGrid Namespace