ControlContext :: changeOrderColumn - Change order column
The function allows changing the column by which a list, tree or table is ordered to the column with the number passed in iColumn . The first column has got number 0. Changing the order for a tree will change order columns for all sub-regions.
In order to set or restore the default order (unordered or ordered by database index), -1 . may be passed in iColumn .
Passing true in bDescending will order rows in descending order.
When the control is not a collection control that supports sort orders, the function trows an exception.
Implementation details
- iColumn
- Column number
The column number is the relative position of a column in a table starting with column 0. When using complex columns consisting of several sub-columns, each sub-column counts as one column, i.e. columns are numbered regardless on the structure defined for the table line.
- bDescending
- Descending order
The option indicates a descending order when being set to true .