Links are not active on this page.
 DynamicInputMask Property

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]

Expand imageReturn Value

cInputMask

Specifies a character expression that must evaluate to a character string with the following format:

 CopyCode imageCopy Code
[@cFunction] [cMask]

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.

Expand imageRemarks

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.

NoteNote

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

Expand imageExample

The following example demonstrates a typical format for cInputMask:

 CopyCode imageCopy Code
Column1.DynamicInputMask = "@R$ ###,###,###.##"

Expand imageSee Also