SftTree/NET 2.0

Column Headers

Softel vdm, Inc.

Optional column headers are available for single- and multi-column trees. Column headers consist of one or multiple rows of cells. Individual cells within the column headers can be accessed using the Headers.Item property. Languages supporting indexers can use array syntax, usually Headers[] or Headers().

The HeadersClass class describes attributes that apply to all headers in a SftTree/NET control. It is accessed using the control's Headers property.

Cells within column headers offer all the cell properties and can contain zero, one or several parts, such as text, images, buttons, checkboxes, radiobuttons, progressbars, and more. The Headers.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 Headers.AppearanceDefault property.

Column headers support optional column resizing and column reordering.

If a user clicks on a column header, the ItemClick or ItemDoubleClick events occur. In addition to the event's ItemClickEventArgs, the properties Headers.LastClicked, Headers.ClickedRow and Headers.ClickedColumn are useful to determine the header clicked.

Tree Components


Feedback / comments / error reports for this topic
© 2007 - Softel vdm, Inc. - www.softelvdm.com