DataGridViewMaskedTextBoxColumn
Wisej.Web.DataGridViewMaskedTextBoxColumn
Namespace: Wisej.Web
Assembly: Wisej.Framework (3.1.0.0)
Represents a DataGridView column that contains a collection of DataGridViewTextBoxCell cells.
Constructors
Initializes a new instance of the DataGridViewMaskedTextBoxColumn.
Initializes a new instance of the DataGridViewMaskedTextBoxColumn.
Properties
DataGridViewCell: Returns or sets the template used to model cell appearance.
Throws:
InvalidOperationException The type is null.
InvalidCastException The set type is not compatible with type DataGridViewTextBoxCell.
CultureInfo: Returns or sets the culture information associated with the masked cell.
String: Returns or sets the input mask. (Default: ""
)
The Mask is a string that defines the masking characters and the literals to display and process during user input and when reading the Value property. Server side masking is processed by an instance of the MaskedTextProvider class exposed by the MaskedTextProvider 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 Mask 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 DataGridViewMaskedTextBoxColumn them to display symbols for another culture by using the Culture property. Otherwise you can set the application-wide culture by setting the CurrentCulture property.
Int32: Returns or sets the maximum number of characters that can be entered into the text box. (Default: 0
)
This value is inherited by all the cells in the column that do not specify a value for this property. Throws:
InvalidOperationException The value of the CellTemplate property is null.
Char: Returns or sets the character used to represent the absence of user input in the cell's MaskedTextBox. (Default: _
)
Throws:
ArgumentException The character specified when setting this property is not a valid prompt character, as determined by the IsValidPasswordChar method of the MaskedTextProvider class.
InvalidOperationException The prompt character specified is the same as the current password character, PasswordChar. The two are required to be different.
Boolean: Returns or sets whether the empty mask is shown in the cell when the value is null or empty. (Default: True
)
MaskFormat: Returns or sets a value that determines whether literals and prompt characters are included in the formatted string. (Default: IncludeLiterals
)
ComponentToolCollection: Returns the instance of ComponentToolCollection associated with this control.
Type: Returns or sets the data type of the values in the column's cells.
Implements
Last updated