ColumnHeaderCustomDrawEventArgs.Column Property

Gets the GridColumn whose header is to be drawn. Returns null if an "empty column header" is currently being painted.

Namespace: DevExpress.XtraGrid.Views.Grid

Assembly: DevExpress.XtraGrid.v20.2.dll

Declaration

public GridColumn Column { get; }
Public ReadOnly Property Column As GridColumn

Property Value

Type Description
GridColumn

A GridColumn whose header is to be drawn.

Remarks

When the column auto-width feature is disabled (see GridOptionsView.ColumnAutoWidth), the grid View displays an "empty column header" after data columns. In banded grid Views, an "empty band header" and "empty column header" are displayed in this case.

Grid-EmptyColumnBandHeaders

The GridView.CustomDrawColumnHeader event fires repeatedly for each column header, including the "empty column header". When this event is fired for the "empty column header", the event's Column parameter returns null.

Similarly, the BandedGridView.CustomDrawBandHeader event fires in a banded grid View repeatedly for each band header, including the "empty band header". When this event is fired for the "empty band header", the event's Band parameter returns null.

See Also