TcxGridBands.Add Method
Adds a new band into the current collection.
Declaration
function Add: TcxGridBand;
Returns
Type |
---|
TcxGridBand |
Remarks
Use the Add method to add a new band to the current collection. After a band is added, a user can specify its settings, such as caption, options and styles, etc. Columns can be added to the created band by setting its BandedColumn.Position.BandIndex property to the index of the created band.
...
With btvItems.Bands.Add do
begin
Caption := 'Additional Info';
Index := 2;
Width := 200;
btvItemsDESCRIPTION.Position.BandIndex := Index;
btvItemsDESCRIPTION.Visible := True;
end;
...
See Also