HeaderPane
Main
Hide
Share Link
Print

Column Headers

Optional column headers are shown above the items of the list. In a combo box, they are hidden until the HeadersClass.Visible property is set. Column headers consist of one or multiple rows of cells (HeadersClass.Rows). Individual cells within the column headers can be accessed using the HeadersClass.Item property. Languages supporting indexers can use array syntax, usually Headers[] or Headers().

The HeadersClass class describes attributes that apply to all headers of the list. It is accessed using the ListClass.Headers property.

Cells within column headers offer all the cell properties and can contain zero, one or several parts, such as text, images, buttons, check boxes, radio buttons, progress bars, and more. The HeadersClass.SortIndicatorPositionDefault property is used to define the position of optional sort indicators. The actual display of the sorting indicator is defined individually for each cell using the cell's CellBaseClass.SortStatus property. By using cell merging within column headers, cells can be merged vertically and/or horizontally.

Cells in column headers usually are defined to look like buttons or headers using the HeadersClass.AppearanceDefault property.

If a user clicks on a column header, the HeaderClicked event of the list (ListClass.HeaderClicked) occurs. The properties HeadersClass.LastClicked, HeadersClass.ClickedRow and HeadersClass.ClickedColumn are useful to determine the header clicked.

See Also List Components