| GridControlLockUpdate Method (Boolean) |
Prevents display of updates.
Namespace: Stingray.GridAssembly: Stingray.GridControl (in Stingray.GridControl.dll) Version: 14.0.0.0
Syntax public bool LockUpdate(
bool lock
)
Public Function LockUpdate (
lock As Boolean
) As Boolean
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:
BooleanThe 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 |
---|
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