RowCount Property
Applies To
Grid
Description
Used to set or get the number of rows in a Grid control.
If set to a value greater than the current number of lines, a new line will be added to the end.
If set to a value less than the current number of lines, a new line will be removed from the end.
Usage
GGet Form.Control.RowCount, var
GSet Form.Control.RowCount, value
- Form
- Name of a form or string variable containing a form name.
- Control
- Name of a control or string variable containing a control name. The control must exist in the specified form.
- var
- Integer variable that will contain the number of rows in the control.
- value
- Integer representing the total number of rows in the control.
Values
Integer value specifying the number of rows in the Grid.
See Also
AddRow, Grid, RemoveRow, RowCount
Example
Integer count
GSet frmMain.Grid01.RowCount, 50
GGet frmMain.Grid01.RowCount, count