Clear (Grid)

This method clears the contents of the Grid control, including all text and cell formatting.

Syntax

grid.Clear

Parameters

grid
Name of a Grid control.

Return Value

None.

Remarks

Clear does not affect the number of rows and columns on the Grid control. To remove rows instead of simply clearing them, use the RemoveItem method.