GRID.RedrawRange |
![]() ![]() |
state = GRID.RedrawRange( BYVAL nControl AS INTEGER, BYVAL minrow AS INTEGER, BYVAL mincol AS INTEGER, BYVAL maxrow AS INTEGER, BYVAL maxcol AS INTEGER ) AS INTEGER
state = GRID.RedrawRange( BYVAL nControl AS INTEGER, BYVAL strName AS STRING ) AS INTEGER
Redraws the specified range of cells. The first format uses the specified cells as the range and the second uses a named range. The function returns TRUE if successful.
Example:
' Redraw Cells 1, 1 through 6, 6 GRID.RedrawRange( nControl, 1, 1, 6, 6 )
' Create the named range "KalleAnka" GRID.SetRange( nControl, MG_RANGE_NAMED, 4, 4, 6, 6, "KalleAnka" )
' Modify the cells GRID.ItemFloat( nControl, 4, 6, 1.1 ) GRID.ItemFloat( nControl, 4, 7, 1.2 ) GRID.ItemFloat( nControl, 4, 8, 1.3 )
GRID.ItemFloat( nControl, 5, 6, 2.1 ) GRID.ItemFloat( nControl, 5, 7, 2.2 ) GRID.ItemFloat( nControl, 5, 8, 2.3 )
GRID.ItemFloat( nControl, 6, 6, 3.1 ) GRID.ItemFloat( nControl, 6, 7, 3.2 ) GRID.ItemFloat( nControl, 6, 8, 3.3 )
' Redraw the modified range of cells GRID.RedrawRange( nControl, "KalleAnka" )
|