windowsforms-devexpress-dot-xtragrid-dot-views-dot-bandedgrid-dot-bandheadercustomdraweventargs.md
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.v25.2.dll
NuGet Packages : DevExpress.Win.Grid, DevExpress.Win.Navigation
public GridBand Band { get; }
Public ReadOnly Property Band As GridBand
| Type | Description |
|---|---|
| GridBand |
A GridBand object specifying the band whose header is to be painted.
|
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.
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
BandHeaderCustomDrawEventArgs Class