Column.setReadOnly

Overview | Methods | This Package | All Packages

Column.setReadOnly

Sets a boolean value indicating whether the data in the column is read-only.

Syntax

public void setReadOnly( boolean readonly )

Parameters

readonly

Set to true to make the column read-only and prevent the data from being changed; otherwise, set to false. The default value of the readOnly property is false.

Remarks

When a column is read-only, the data in the column cannot be changed. Both Column.setValue and DataGrid.setCurrentCellValue will fail to update the recordset if the column's readOnly property is true.

When the parent DataGrid control's allowUpdate property is true, you can set a column's readOnly property to true to prevent the user from changing only the data in that column. When the allowUpdate property is false, the data in all columns is read-only, regardless of any column's readOnly property setting.

See Also   getReadOnly