Skip to main content
A newer version of this page is available. .

BandHeaderCustomDrawEventArgs.Band Property

Gets the band whose header is to be painted. Returns null if an “empty band header” is currently being painted.

Namespace: DevExpress.XtraGrid.Views.BandedGrid

Assembly: DevExpress.XtraGrid.v19.2.dll

Declaration

public GridBand Band { get; }

Property Value

Type Description
GridBand

A GridBand object specifying the band whose header is to be painted.

Remarks

When the column auto-width feature is disabled (see GridOptionsView.ColumnAutoWidth), the banded grid View displays an “empty band header” and “empty column header” to the right of data bands and columns.

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 snippet (auto-collected from DevExpress Examples) contains a reference to the Band 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