ComponentOne True DBGrid Pro 8
RowHeight Property

This property returns or sets the height of all grid rows in terms of the coordinate system of the grid's container.

Syntax

object.RowHeight= single

Remarks

Read/Write at run time and design time.

The RowHeight property accepts a floating point number from 0 to 10,000. The default value depends upon the character height of the current font.

A setting of 0 causes the grid to readjust its display so that each row occupies a single line of text in the current font. Therefore, the following statements will set the row height so that exactly two lines of text are shown in each row:

TDBGrid1.RowHeight = 0

TDBGrid1.RowHeight = TDBGrid1.RowHeight * 2    

If the control's AllowRowSizing property is set to True, then the user can adjust the RowHeight property at run time by dragging the row divider between any pair of record selectors.

Note

Increasing the RowHeight property does not wrap cell text at column boundaries unless the column's WrapText property is True.

See Also

TDBGrid Control

TDBDropDown Control

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback