Skip to main content

TcxGridChartDataGroup.SortOrder Property

Specifies the order in which the data group’s categories are displayed once this group becomes active.

Declaration

property SortOrder; default soAscending;

Property Value

Type Default Description
TcxDataSortOrder soAscending

The sort order.

Remarks

Data group categories have the same order as their values are in the VisibleValues property. You can set the SortOrder property to change the display order. You cannot assign soNone to the SortOrder property.

Also you can use the SortOrder property of the default categories and series to apply sorting by their values.

Note

Sorting applied to series takes priority over sorting by default categories or a data group. Only a single type of sorting (either by default categories/a data group or series values) is active at one time within a chart.

To reverse the category display order, set the View’s AxisCategory.CategoriesInReverseOrder property to True.

Default Value

The SortOrder property’s default value is soAscending.

See Also