DataGrid.setDynamicColumns

Overview | Methods | Fields | This Package | All Packages

DataGrid.setDynamicColumns

Sets a boolean value indicating whether the columns in the grid are determined dynamically.

Syntax

public void setDynamicColumns( boolean value )

Parameters

value

Set to true to determine the columns dynamically; otherwise, set to false. The default value of the dynamicColumns property is true.

Remarks

When the dynamicColumns property is set to true, the columns in the grid are always determined by the fields in the bound data source. However, if you change any column properties, the dynamicColumns property is automatically set to false, indicating the columns are static.

To reset the columns when the dynamicColumns property is set to true, call rebind. To reset the columns when this property is false, call setColumns.

See Also   getDynamicColumns