CellHeight, CellLeft, CellTop, CellWidth

Returns the position and size of the current cell, in twips. Not available at design time.

Syntax

object.CellHeight

object.CellLeft

object.CellTop

object.CellWidth

The object placeholder represents an object expression that evaluates to an object.

Remarks

These properties are useful if you want to emulate in-cell editing. By trapping the Grid control's KeyPress event, 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.