DataGridViewMaskedTextBoxCell
Wisej.Web.DataGridViewMaskedTextBoxCell
Last updated
Was this helpful?
Wisej.Web.DataGridViewMaskedTextBoxCell
Last updated
Was this helpful?
Namespace: Wisej.Web
Assembly: Wisej.Framework (3.1.0.0)
Displays an editable control in a cell when in edit mode.
: Returns or sets the culture information associated with the masked cell.
0
Digit, required. This element will accept any single digit between 0 and 9.
9
Digit or space, optional.
#
Digit or space, optional. If this position is blank in the mask, it will be rendered as a space in the Text property. Plus (+) and minus (-) signs are allowed.
L
Letter, required. Restricts input to the ASCII letters a-z and A-Z. This mask element is equivalent to [a-zA-Z] in regular expressions.
?
Letter, optional. Restricts input to the ASCII letters a-z and A-Z. This mask element is equivalent to [a-zA-Z]? in regular expressions.
&
Character, required. This element behaves like the "L" element.
C
Character, optional. Any non-control character. This element behaves like the "?" element.
A
Alphanumeric, required. The only characters it will accept are the ASCII letters a-z and A-Z. This mask element behaves like the "a" element.
a
Alphanumeric, optional. The only characters it will accept are the ASCII letters a-z and A-Z. This mask element behaves like the "A" element.
.
Decimal placeholder. The actual display character used will be the decimal symbol appropriate to the format provider, as determined by the control's FormatProvider property.
,
Thousands placeholder. The actual display character used will be the thousands placeholder appropriate to the format provider, as determined by the control's FormatProvider property.
:
Time separator. The actual display character used will be the time symbol appropriate to the format provider, as determined by the control's FormatProvider property.
/
Date separator. The actual display character used will be the date symbol appropriate to the format provider, as determined by the control's FormatProvider property.
$
Currency symbol. The actual character displayed will be the currency symbol appropriate to the format provider, as determined by the control's FormatProvider property.
<
Shift down. Converts all characters that follow to lowercase.
>
Shift up. Converts all characters that follow to uppercase.
\
Escape. Escapes a mask character, turning it into a literal. "\" is the escape sequence for a backslash.
Others
Literals. All non-mask elements will appear as themselves within MaskedTextBox. Literals always occupy a static position in the mask at run time, and cannot be moved or deleted by the user.
Throws:
Throws:
Initializes the control used to edit the cell.
editor
style
Throws:
: Returns the type of the cell's editing control.
: Returns or sets the input mask. (Default: ""
)
The is a string that defines the masking characters and the literals to display and process during user input and when reading the property. Server side masking is processed by an instance of the class exposed by the property. On the client side, the mask processing is performed by the "wisej.utils.MaskProvider.js" class while the user edits the input field.
If you change the when the control already contains a value, it will apply the new mask to the existing text. The decimal (.), thousand (,), time (:), date (/), and currency ($) symbols default to displaying those symbols as defined by the application's culture. You can force a specific them to display symbols for another culture by using the property. Otherwise you can set the application-wide culture by setting the property.
: Returns or sets the maximum number of characters that can be entered into the text box. (Default: 0
)
The value is less than 0.
: Returns or sets the character used to represent the absence of user input in . (Default: _
)
The character specified when setting this property is not a valid prompt character, as determined by the method of the class.
The prompt character specified is the same as the current password character, . The two are required to be different.
: Returns or sets a value that determines whether literals and prompt characters are included in the formatted string. (Default: IncludeLiterals
)
: Returns the instance of associated with this cell.
: Returns or sets the data type of the values in the cell.
The that is used to edit the cell.
The that is in effect for the cell entering edit mode.
editor is null.