Home > Language Reference > Classes > GridEx
Redraw Property
Determines whether the control is updated each time its content is altered.
Syntax
Public Property Get Redraw() As Boolean
Public Property Let Redraw(ByVal bRedraw As Boolean)
| Parameter | Description |
| bRedraw | Any boolean expression. |
Remarks
The Redraw property determines whether the control is updated immediately after its content is altered, for example after using the AddItem, Clear, or Populate methods.
This property behaves like a counter. If you set its value to False twice, you'll also have to set its value twice to True to restore the control's normal state. If you set its value to False more than 127 times consecutively, a runtime error occurs. This behavior means you can write functions which deactivate then reactivate the drawing of a control without having to worry about the previous state of the control.
You can use this property to improve the performance of your program and prevent the control from flickering when you add or modify several items in a grid.
System requirements
| System | Minimal version | Remarks |
| Palm OS | Palm OS 3.0 | - |
| Windows CE | Windows CE 3.0 | - |