Skip to main content

TcxGridColumnHeaderViewInfo Class

Contains the ViewInfo information about a column header located in a tabular grid View.

Declaration

TcxGridColumnHeaderViewInfo = class(
    TcxCustomGridViewCellViewInfo
)

Remarks

This contains properties on the state, location and size of a column header.

To get the column header’s state, you should reference the following properties:

  • IsFixed – indicates whether the header is fixed.

  • IsPressed – indicates whether the header is pressed.

The following properties help you determine the actual and permitted dimensions of the header:

  • MaxWidth – contains the maximum permitted width of the header.

  • MinWidth – contains the minimum permitted width of the header.

  • RealWidth – contains the real header width.

Location and size information (such as the width or bounding rectangle) are provided by the TcxCustomGridCellViewInfo properties.

A TcxGridColumnHeaderViewInfo object is passed as the AViewInfo parameter to the TcxGridTableView.OnCustomDrawColumnHeader and TcxGridColumn.OnCustomDrawHeader events. To learn about custom drawing, refer to the Custom Draw topic.

You should not create instances of ViewInfo objects. They are created automatically on demand.

See Also