次の方法で共有


DynamicCurrentControl Property

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

Column.DynamicCurrentControl [= cExpression]

Return Value

  • cExpression
    Specifies a character expression that evaluates to the name of the control that displays and accepts data for the active cell in the specified column at run time. The name of the control is reevaluated each time the Grid control is refreshed.

    Note

    The default control is a TextBox control with Text1 as the Name property. To add other controls, use the AddObject method.

Remarks

Applies To: Column Object

Note

The Grid AutoFit method might not resize adequately to display the entire contents of a column if you use this property.

If the column's Sparse property is set to True (.T.), only the active cell in the column uses the object specified in the DynamicCurrentControl property setting to display data; the other cells display data using a text box. If the Sparse property is set to False (.F.), all cells in the column use the object specified in the DynamicCurrentControl property setting to display data.

See Also

Reference

AddObject Method

CurrentControl Property

Other Resources

Properties (Visual FoxPro)

Language Reference (Visual FoxPro)