Redraw Property Example

The following code turns off redrawing, makes several changes to the contents of MSHFlexGrid, and then turns on redrawing to show the results.

Note   If you are using the MSFlexGrid, substitute "MSHFlexGrid1" with "MSFlexGrid1."

Dim i As Integer
' Freeze MSHFlexGrid to avoid flicker.
MSHFlexGrid.Redraw =False
' Update MSHFlexGrid contents.
For i =MSHFlexGrid1.FixedRows To MSHFlexGrid1.Rows - 1
MSHFlexGrid1.TextMatrix(i, 1) =GetName(i, 1)
MSHFlexGrid1.TextMatrix(i, 2) =GetName(i, 2)
Next
' Show results.
MSHFlexGrid1.Redraw =True