True DBGrid for WinForms | ComponentOne
C1.Win.C1TrueDBGrid.4.8 Assembly / C1.Win.C1TrueDBGrid Namespace / C1DataColumn Class / EditMask Property

In This Topic
    EditMask Property (C1DataColumn)
    In This Topic
    Gets or sets the edit mask for a column.
    Syntax
    'Declaration
     
    Public Property EditMask As System.String
    public System.string EditMask {get; set;}
    Remarks

    The EditMask property allows an input mask to be specified for automatic input formatting and validation. The mask syntax is similar to the one used by Microsoft Access. Setting the input mask for a column will prevent the user from entering any information in the cell that is not in the format of the EditMask string.

    The EditMask must be a string composed of the following symbols:

    Wildcards

    0 Digit.
    9 Digit or space.
    # Digit or sign.
    L Letter.
    ? Letter or space.
    A Letter or digit.
    a Letter, digit or space.
    & Any character.

    Localized characters

    . Localized decimal separator.
    , Localized thousand separator.
    : Localized time separator.
    / Localized date separator.

    Command characters

    \ Next character is taken as a literal.
    > Translate letters to uppercase.
    < Translate letters to lowercase.
    See Also