CellTop

This property returns the position of the top of the current cell.

Syntax

object.CellTop [= number]

Parameters

object
Object expression that evaluates to a Grid control.
number
Numeric expression specifying the position of the current cell.

Remarks

The CellTop property is unavailable at design time and read-only at run time.

This property is useful if you want to emulate in-cell editing. By trapping the KeyPress event of the Grid control, you can place a text box or some other control over the current cell and let the user edit its contents.

The return values are always in twips, regardless of the form's ScaleMode setting.