Back to Devexpress

PivotGridControl.CustomFieldListSort Event

wpf-devexpress-dot-xpf-dot-pivotgrid-dot-pivotgridcontrol-57c47389.md

latest3.0 KB
Original Source

PivotGridControl.CustomFieldListSort Event

Allows you to change field and folder order in the Field List.

Namespace : DevExpress.Xpf.PivotGrid

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

NuGet Package : DevExpress.Wpf.PivotGrid

Declaration

csharp
public event EventHandler<PivotCustomFieldListSortEventArgs> CustomFieldListSort
vb
Public Event CustomFieldListSort As EventHandler(Of PivotCustomFieldListSortEventArgs)

Event Data

The CustomFieldListSort event's data class is PivotCustomFieldListSortEventArgs. The following properties provide information specific to this event:

PropertyDescription
Caption1Gets the first folder to be compared.
Caption2Gets the second folder to be compared.
Field1Gets the first field to be compared.
Field2Gets the second field to be compared.
ResultGets or sets the result of a custom comparison.

Remarks

Handle the CustomFieldListSort event to sort fields and folders located in the Field List. Use the PivotCustomFieldListSortEventArgs.Result property to set the result of the custom comparison of the two fields or folders being processed. The fields being processed are specified by the PivotCustomFieldListSortEventArgs.Field1 and PivotCustomFieldListSortEventArgs.Field2 properties. The folders being compared are specified by the PivotCustomFieldListSortEventArgs.Caption1 and PivotCustomFieldListSortEventArgs.Caption2 properties.

See Also

PivotGridControl Class

PivotGridControl Members

DevExpress.Xpf.PivotGrid Namespace