IDimensionViewer.Sorted

Syntax

Sorted: Boolean;

Description

The Sorted property determines whether the values can be sorted by column specified in the SortColumn property.

Comments

If the property is set to True, the values are sorted by the SortColumn column, otherwise the sorting is based on the Order attribute.

Example

Executing the example requires a form with the Button1 button, the DimensionTree component named DimensionTree1 and the UiDimension component, which is a data source for DimensionTree1.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);

Begin

DimensionTree1.SortType := ControlSortType.Text;

DimensionTree1.SortColumn := 0;

DimensionTree1.Sorted := True;

End Sub Button1OnClick;

After executing the example, on clicking the button the DimensionTree1 component elements are sorted based on the first column.

See also:

IDimensionViewer

IDimensionViewer.SortColumn

IDimensionViewer.SortType

IDimensionViewer.Sort

IDimensionViewer.SortDefault