Click or drag to resize
GridControlLockUpdate Method (Boolean)
Prevents display of updates.

Namespace: Stingray.Grid
Assembly: Stingray.GridControl (in Stingray.GridControl.dll) Version: 14.0.0.0
Syntax
public bool LockUpdate(
	bool lock
)

Parameters

lock
Type: SystemBoolean
Should the updates be locked (true) or unlocked and ready for an update (false).

Return Value

Type: Boolean
The previous lock-update-state.
Remarks
Call this method if you have several subsequent commands that change the grid. Normally each command updates the grid (or invalidates the affected rectangle) immediately, which results in slowing down performance substantially. If you call LockUpdate(true), subsequent commands need not invalidate the grid (and compute cell/window coordinates). After doing your series of commands, you should call LockUpdate(false) and RedrawGrid to refresh the whole grid.
Note Note
Invoking LockUpdate(false) does not automatically redraw the grid. This is by design. If you wish to redraw the grid when you release the update lock, you should invoke RedrawGrid immediately after releasing the lock.
See Also