[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.IPivotField.AutoSort

AutoSort Method

AutoSort(SortOrder?, string)

Establishes automatic field-sorting rules for PivotTable reports.

Declaration
void AutoSort(SortOrder? order, string field = null)
Parameters
Type Name Description
SortOrder? order

Required SortOrder. The sort order.

string field

The name of the sort key field. You must specify the unique name (as returned from the PivotField.SourceName property) and not the displayed name.