Overview | Methods | Fields | This Package | All Packages
Sets a boolean value indicating whether data can be modified in the grid (provided the underlying recordset allows records to be modified).
Syntax
public void setAllowUpdate( boolean allowUpdate )
Parameters
allowUpdate
Set to true to allow the data in the grid to be modified; otherwise, set to false. The default value of the allowUpdate property is true.
Remarks
The data in the current cell can be changed only if the underlying recordset allows records to be modified, the allowUpdate property is set to true, and the readOnly property of the cell's column is false.
The current cell's value can be changed programmatically or by the user. To programmatically change a cell's value, call setCurrentCellValue.
If the allowUpdate property is set to false, data cannot be changed in the grid, and calling setCurrentCellValue will fail. The user can still scroll through the grid and select data, but the grid will not allow data to be changed.
Important If the underlying recordset does not allow records to be modified, the grid will not allow data modifications, even if the allowUpdate property is true.
See Also getAllowUpdate