ComponentOne True DBGrid Pro 8
AllowUpdate Property

AllowUpdate Property

Enables interactive record updating.

Syntax

TDBGrid.AllowUpdate= boolean

Remarks

Read/Write at run time and design time.

If True (the default), the user can modify data in the TDBGrid control.

If False, the user cannot modify data in the TDBGrid control.

When the AllowUpdate property is False, the user can still scroll through the TDBGrid control and select data, but cannot change any of the values; any attempt to change the data in the grid is ignored.

The underlying data source may not permit updates even if the AllowUpdate property is True for the TDBGrid control. In this case, a trappable error occurs when the user tries to change the record.

You can also use the Column object's Locked property to make individual columns of the TDBGrid control read-only, even if the AllowUpdate property is True. However, if AllowUpdate is False, then this setting takes precedence over the column settings (without changing the column settings).

See Also

TDBGrid Control

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback