IDataGrid.RootBands

Syntax

RootBands: IDataGridRootBands;

Description

The RootBands property returns the collection of table root bands. The table has the main central area and two fixed areas.

Example

Executing the example requires a form, a button named Button1 positioned on it and the DataGrid component named DataGrid1. At least three columns must be created in the DataGrid1 component.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
   Columns: IDataGridColumns;
   RootBands: IDataGridRootBands;
Begin
   Columns := DataGrid1.Columns;
   RootBands := DataGrid1.RootBands;
   Columns.Item(1).ParentBand := RootBands.Left;
   Columns.Item(2).ParentBand := RootBands.Right;
   Columns.Item(0).ParentBand := RootBands.Center;
End Sub Button1OnClick;

Clicking the button arranges places columns in different fixed bands.

See also:

IDataGrid