SetParentBand(Value: IDataGridBand; Row: Integer; Column: Integer);
Value is a band that is an object parent.
Row is index of the row, into which the object is put.
Column is index of the column, into which the object is put.
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 (band or column) that was clicked on with a mouse is moved to a band with the 0 index, to a row with the 1 index, to a column with the 2 index.
See also: