See Also Example
Applies To
Grid.
Description
Determines the height of the specified row in twips Not available at design time.
Usage
[form.]grid.RowHeight(rownum)[ = numericexpression ]
Remarks
The minimum RowHeight is 1 pixel. Users can change the RowHeight of any row at run time by placing the mouse pointer on a gridline between rows and then clicking and dragging.
Data Type
Long
Help:
ColWidth Property
Row Property
Programmer's Guide:
Chapter 3, "Creating and Using Controls"
The example sets the height of the current row to 500 twips when you click the form. To try this example, create a new project, add GRID.VBX using the Add File command on the File menu, and then draw a grid. Copy the code into the Declarations section, press F5 to run the program, and then select a cell and click the form.
Sub Form_Load ()
Grid1.Rows = 5 ' Set columns and rows.
Grid1.Cols = 7
End Sub
Sub Form_Click ()
Grid1.RowHeight(Grid1.Row) = 500
End Sub