IDataGridBandBase.SetParentBand

Syntax

SetParentBand(Value: IDataGridBand; Row: Integer; Column: Integer);

Parameters

Value - a band that is an object parent.

Row - index of the row, into which the object is put.

Column - index of the column, into which the object is put.

Description

The SetParentBand method places the current object to the specified position of the band that is passed by the Value parameter.

Example

Sub DataGrid1OnBandBaseClick(Sender: Object; Args: IDataGridBandEventArgs);

Begin

Args.BandBase.SetParentBand(DataGrid1.Bands.Item(0), 1, 2);

End Sub DataGrid1OnBandBaseClick;

After executing the example the object (band or column) that was clicked with a mouse is moved to the band with the 0 index, to the row with the 1 index, to the column with the 2 index.

See also:

IDataGridBandBase