Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TcxGridBands.Add Method

Adds a new band into the current collection.

#Declaration

Delphi
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