DataGridViewMaskedTextBoxCell

Wisej.Web.DataGridViewMaskedTextBoxCell

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.5.0.0)

Displays an editable MaskedTextBox control in a DataGridViewCell cell when in edit mode.

public class DataGridViewMaskedTextBoxCell : DataGridViewCell

Constructors

Initializes a new instance of DataGridViewMaskedTextBoxCell.

Properties

CultureInfo: Returns or sets the culture information associated with the masked cell.

Type: Returns the type of the cell's editing control.

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 DataGridViewMaskedTextBoxCell 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)

Throws:

Char: Returns or sets the character used to represent the absence of user input in MaskedTextBox. (Default: _)

Throws:

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 cell.

Type: Returns or sets the data type of the values in the cell.

Methods

Initializes the control used to edit the cell.

Throws:

Indicates whether the cell data should be updated on the client even if the user didn't change the value when editing.

Returns: Boolean.

Implements

Last updated