Skip to main content

BandHeaderCustomDrawEventArgs.Info Property

Gets an object providing View information for the band header being painted.

Namespace: DevExpress.XtraGrid.Views.BandedGrid

Assembly: DevExpress.XtraGrid.v24.1.dll

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

Declaration

public GridBandInfoArgs Info { get; }

Property Value

Type Description
DevExpress.XtraGrid.Drawing.GridBandInfoArgs

A DevExpress.XtraGrid.Drawing.GridBandInfoArgs object containing the painted band’s View information.

Remarks

Use the Info property to access View information of the band being painted. For instance, you can access the current state of the header (using the State property). Another example is to obtain the caption string’s bounding rectangle if you need to paint the caption at its default position.

Note that the grid uses the settings provided by the Info property to paint a band header. This occurs if the CustomDrawEventArgs.Handled property hasn’t been set to true (i.e. default painting is performed). Thus, you may want to change the properties of the object returned by the Info property. This will result in painting the header using the default manner but with modified settings.

The Info property value (with its default or modified settings) can be passed to the DrawObject method of the object returned by the CustomDrawObjectEventArgs.Painter property. This will paint the band header in the default manner. This can be used, for instance, if you need to paint custom elements on it.

See Also