|| | |||Browse by category|
Is there a way of batching updates to the screen? I would like to perform several operations in a row and cause the grid to re-paint only once at the end (instead of after each operation).
You can use the CGXGridCore::LockUpdate() function to accompish this taks. First, call LockUpdate(TRUE) to prevent any screen updates, then perform your operations, call LockUpdate(FALSE) to re-enable screen updated, and then repaint the grid to show the changes using a function like CGXGridCore::Redraw().
// First disable screen updates LockUpdate(FALSE); // Perform your batch of operations here ... // Then re-enable screen updates and redraw LockUpdate(FALSE); Redraw();