Share via


CurrentControl Property

Specifies which control contained in a Column object is used to display the values of the active cell. Available at design time; read-write at run time.

Column.CurrentControl[ = cName]

Property Values

  • cName
    Specifies the name of the control that displays and accepts data for the active cell in a Column object*.*

Remarks

The default control is a TextBox having Text1 as the Name property. Use the AddObject method to add other controls.

If the Column's Sparse property is set to true (.T.), only the active cell in the Column uses the object specified in the CurrentControl property; the other cells display data using a TextBox. If the Sparse property is set to false (.F.), all cells in the Column use the CurrentControl property to display data.

Note   You can add an unlimited number of controls to a Column object using the AddObject method. However, you can set the CurrentControl property for only one control at any given time.

See Also

AddObject Method | Bound Property | RemoveObject Method | Sparse Property

Applies To: Column Object