GridBandCollection.CanAdd(GridBand) Method
In This Article
Indicates whether the specified band can be added to the collection.
Namespace: DevExpress.XtraGrid.Views.BandedGrid
Assembly: DevExpress.XtraGrid.v24.2.dll
NuGet Packages: DevExpress.Win.Grid, DevExpress.Win.Navigation
#Declaration
#Parameters
Name | Type | Description |
---|---|---|
band | Grid |
A Grid |
#Returns
Type | Description |
---|---|
Boolean | true if the specified band can be added to the collection; otherwise, false. |
#Remarks
Bands cannot be added to the collection in the following cases:
- the collection already contains the specified band;
- the band is a parent for the collection.
See Also