IDimensionViewer.SortColumn

Syntax

SortColumn: Integer;

Description

The SortColumn property determines the index of the column, by which the sorting is executed. It is used with the Sorted and SortType properties.

Example

Executing the example requires a form with the Button1 button, the DimensionTree component named DimensionTree1 and the UiDimension component that 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