Object Reference > True DBGrid Properties > BatchUpdates Property |
BatchUpdates Property
The BatchUpdates property specifies batch update mode.
TDBGrid.BatchUpdates= boolean
Read/Write at run time. Not available at design time.
If False, the grid will call Update upon leaving a row.
If True, the grid will not call Update upon leaving a row.
When an OLE DB grid is bound to a data source for which batch updates are in effect (such as an ADO Recordset whose LockType property is set to adLockBatchOptimistic), the grid must not update the current record. In most cases, the grid can derive this information even though it is not part of the OLE DB specification. For the rare cases in which the grid cannot determine whether batch updates are in effect, you can set the BatchUpdates property in code to override the grid's default behavior.
To prevent updates from occurring when the user moves off a modified row, set BatchUpdates to True.
To enable updates on a per-row basis, set BatchUpdates to False.
See Updating and Deleting the Current Record for more information.
Note
This property is only supported by the OLE DB version of True DBGrid Pro.