DataGrid.EnableColumnMove

Syntax

EnableColumnMove: Boolean;

Description

The EnableColumnMove property determines whether table column headers can be moved.

Comments

Use JSON or the setEnableColumnMove method to set the property value, and the getEnableColumnMove method to get the property value.

Available Values:

Example

To execute the example, the HTML page must contain the DataGrid named grid (see Example of Creating the DataGrid Component). Point the mouse cursor to the first column header, hold down the left mouse button and drag the first column to a new position:

After the left mouse button is released, the table will look as follows:

Disable moving of table column headers:

// Disable moving of table column headers
grid.setEnableColumnMove(False);

After executing the example moving of table column headers are disabled. Attempts to change position of one of the column will be unsuccessful.

See also:

DataGrid