Back to Devexpress

GridBandColumnCollection Class

windowsforms-devexpress-dot-xtragrid-dot-views-dot-bandedgrid-d85fc9ac.md

latest3.1 KB
Original Source

GridBandColumnCollection Class

Represents a column collection owned by a band.

Namespace : DevExpress.XtraGrid.Views.BandedGrid

Assembly : DevExpress.XtraGrid.v25.2.dll

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

Declaration

csharp
[ListBindable(false)]
public class GridBandColumnCollection :
    CollectionBase,
    IEnumerable<BandedGridColumn>,
    IEnumerable
vb
<ListBindable(False)>
Public Class GridBandColumnCollection
    Inherits CollectionBase
    Implements IEnumerable(Of BandedGridColumn),
               IEnumerable

The following members return GridBandColumnCollection objects:

Remarks

Banded Grid Views allow you to arrange columns into bands. Each band holds its child column collection in the GridBand.Columns property. Such collections are represented by GridBandColumnCollection objects.

GridBandColumnCollection objects allow you to add, remove, access individual bands and perform other common collection management tasks. Note that the GridBandColumnCollection.Add method can be used to move columns from band to band. If using a BandedGridView, the GridBandColumnCollection.MoveTo method can be used to change the visual columns order within a band (the visual columns order matches the order of columns within the collection in such Views).

The GridBandColumnCollection class also allows you to access the band and View that own the collection. Use the GridBandColumnCollection.Band and GridBandColumnCollection.View properties for this purpose.

Inheritance

Object CollectionBase GridBandColumnCollection

See Also

GridBandColumnCollection Members

Banded Grid Views

DevExpress.XtraGrid.Views.BandedGrid Namespace