RowHeight

[property icon] RowHeight

Specifies the row height

Integer property

Applies to: Grid , GridCell


>

RowHeight

This property is used to specify the height of rows in a Grid control. This property can be used to change the height of all rows within the grid or the height of an individual row. For example, the following would set the height of all cells within the specified grid control:

.GridControl1.RowHeight = 100

To change the height of an individual row this property is used in conjunction with the Cell() method. For example:

.GridControl1.Cell(Row, Col).RowHeight = 120

This property can also be used to return the height of the specified row, for example:

Height = .GridControl1.Cell(6,0).RowHeight

A value of zero is returned to signify that the row is using the default row height.

Setting a row's height to 0 does not hide it. Even though it may appear to be invisible the row will still feature in the grid's tab order and scrollbar calculation.

See also

Grid methods, properties and events. GridCell methods, properties and events.