Skip to main content
Row

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

PivotFieldSortOptions.AutoSortField Property

Gets the index of the data field used by the sort criteria applied to the pivot field.

Namespace: DevExpress.Spreadsheet

Assembly: DevExpress.Spreadsheet.v24.2.Core.dll

NuGet Package: DevExpress.Spreadsheet.Core

#Declaration

int AutoSortField { get; }

#Property Value

Type Description
Int32

An integer value that is the zero-based index of the data field in the PivotDataFieldCollection.

#Property Paths

You can access this nested property as listed below:

Object Type Path to AutoSortField
PivotField
.Sort .AutoSortField

#Remarks

The AutoSortField property returns -1, if the specified pivot field is not sorted by values in a data field.

To sort a row or column field in a pivot table based on values in a data field, use the PivotField.SortItems method.

See Also