property Columns.SortBarColumn (Position as Variant)
as Column
Returns the Column from control's SortBar giving its position.
Type
Description
Position as Variant
A long expression that specifies the position where the column is requested
Column
A Column object that specifies the sorted/grouped column at giving position, or
empty if no column is found.
The SortBarColumn /
SortBarColumnsCount properties can be used to enumerate the columns in the
control's sort bar. Use the SortOrder
property of the Column object on
SortAscending /
SortDescending to add a column to the sort bar, on
SortNone to remove the column from the control's sort bar. Use the SortType
property to determine the way how the column is sorted. Use the AllowSort
property to avoid sorting a column when the user clicks the column. Use the SingleSort
property to specify whether the control supports sorting by single or multiple
columns. For instance, the SortBarColumnsCount counts the number of grouped
columns, if the control's AllowGroupBy
property is True.