TIWCGJQGridOptions.RemapColumns(integer[],Boolean,Boolean) Method

remapColumns permutation, updateCells, keepHeader none Reorder the grid columns based on the permutation array. The indexes of the permutation array are the current order, the values are the new order. By example if the array has values [1,0,2] after calling this method the first column will be reordered as second. updateCells if set to true will reorder the cell data. keepHeader if set to true will reorder the data above the header cells.

Namespace: IWCGJQGrid
public
 procedure RemapColumns(const APermutation: array of integer; AUpdateCells,AKeepHeader: Boolean);

Parameters

APermutation
Type: array of integer

AUpdateCells
Type: Boolean

AKeepHeader
Type: Boolean