Back to Devexpress

TcxGridBandedTableView.Bands Property

vcl-cxgridbandedtableview-dot-tcxgridbandedtableview-b7e97f4f.md

latest1.5 KB
Original Source

TcxGridBandedTableView.Bands Property

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

Declaration

delphi
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.

delphi
...
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

TcxGridBand

TcxGridBands

TcxGridBandedTableView.Columns

TcxGridBandedTableView Class

TcxGridBandedTableView Members

cxGridBandedTableView Unit