SetParentBand(Value: IDataGridBand; Row: Integer; Column: Integer);
Value. A band that is an object parent.
Row. Index of the row, to which the object will be placed.
Column. Index of the column, to which the object will be placed.
The SetParentBand method places the current object to the specified position of the band that is passed by the Value parameter.
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: