Specifies the dynamic format of text and controls in a column by controlling how data is entered and displayed in a Column object. Available at design time; read/write at run time.
Column.DynamicInputMask[ = cInputMask]
Specifies a character expression that must evaluate to a character string with the following format:
The character expression is reevaluated at run time each time the Grid control is refreshed. For additional information about the format of cFunction and cMask, see the Format and InputMask properties.
В Copy Code
Applies To: Column Object
The DynamicInputMask property takes precedence over the Format and InputMask properties.
If the control specified by the column's CurrentControl property is a text box, spinner, or combo box, the cFunction and cMask portions of the DynamicInputMask expression are passed to the Format and InputMask properties for the text box, spinner, or combo box.
|The GridВ AutoFit method might not resize adequately to display the entire contents of a column if you use this property.|
The following example demonstrates a typical format for cInputMask:
Column1.DynamicInputMask = "@R$ ###,###,###.##"