Sorting

The data displayed by a table-like control can be sorted by clicking on the column header at runtime.

If the user clicks or touches the column header, the data in the column are sorted. The order of the table rows is sorted accordingly.

This behavior can be configured by the TableHeaderCell control properties found in the Sorting category.

CanUserSort

Specifies whether the content of the column can be sorted by a click on the column header at runtime.

DataSourceItemMember

Sets the object key from the data source. The table will be sorted by the values of this object key.

SortMode

Specifies whether to data is sorted by the Table control (Internal) or by program code (External).

SortType

Sets the sort type.

The property has only an effect if the SortMode property is set to Internal.

SortDownSymbol, SortUpSymbol

Sets the symbol displayed on the right-hand side of the column header if the column was sorted in the descending order (SortDownSymbol) or ascending order (SortUpSymbol). Click the button next to the property to select a symbol. The available images depend on the SymbolType and IconFont property settings.

 

Applies to:

TableHeaderCell (TrendChartLegend)