Skip to main content

TcxGridBandedTableView.Bands Property

Provides indexed access to the bands within a Banded Table View.

Declaration

property Bands: TcxGridBands read; write;

Property Value

Type
TcxGridBands

Remarks

Use the Bands property to View the collection of bands belonging to the current View. Each band provides access to all its columns via the Band.Columns property. It also publishes the Band.Options property which contains options controlling band behavior. The Band.Styles property allows you to define appearance of the band elements.

...
with btvItems.Bands.Add do
begin
  Caption := 'Additional Info';
  Index := 1;
  Width := 200;
  Options.Moving := False;
  btvItemsDESCRIPTION.Position.BandIndex := Index;
  btvItemsRESOLUTION.Position.BandIndex := Index;
  btvItemsRESOLUTION.Position.RowIndex := 1;
  Columns[0].SortOrder := TcxDataSortOrder(soAscending);
end;
...
See Also