Version

SortedColumns Property (UltraPivotGrid)

Returns a collection which contains each column on which a sort direction has been specified.
Syntax
'Declaration
 
Public ReadOnly Property SortedColumns As SortedColumnsCollection
public SortedColumnsCollection SortedColumns {get;}
Remarks

The SortedColumns collection can be used to determine which columns have a sort direction defined, and can also be used to actually change the sort direction of one or more columns.

To sort the rows in the pivot grid based on the cell values of a particular column, use the collection's Add method. Because sorting on multiple columns is supported, the method includes a parameter which enables the developer to specify whether to clear or extend the existing sort.

A column's sort direction can also be changed via the column's SortDirection property. When this value is changed, the SortedColumns collection is automatically updated to reflect the change.

The control's ColumnSorting is raised prior to the application of the new sort criteria; this event can be canceled to prevent the sort criteria from changing. The ColumnSorted event is raised immediately after the new sort criteria is applied.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also