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