Skip to main content

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.v23.2.dll

NuGet Packages: DevExpress.Win.Grid, DevExpress.Win.Navigation

Declaration

public GridColumn Column { get; }

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.

The following code snippets (auto-collected from DevExpress Examples) contain references to the Column property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also