Skip to main content
Version: 3.5

DataGridViewTextBoxCell

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.5.0.0)

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

public class DataGridViewTextBoxCell : DataGridViewCell

Constructors

Instance memberDataGridViewTextBoxCell()

Initializes a new instance of DataGridViewTextBoxCell.

Properties

Instance memberAcceptsReturn

Boolean: Returns or sets whether pressing ENTER in a MultilineDataGridViewTextBoxCell creates a new line of text or terminates edit mode. (Default: False)

Instance memberAcceptsTab

Boolean: Returns or sets whether pressing the TAB key in a multiline text box control types a TAB character in the control instead of moving the focus to the next control in the tab order. (Default: False)

The Multiline property must be true to get a TAB character in the control. If the AcceptsTab property is set to true, the user can press SHIFT+TAB to move the focus to the next control in the tab order.

Instance memberAutoComplete

AutoComplete: Returns or sets whether the browser can auto complete the field with values previously entered by the user.

Instance memberAutoCompleteList

String[]: Identifies a list of pre-defined options to suggest to the user.

Instance memberCharacterCasing

CharacterCasing: Returns or sets whether the cell editor modifies the case of characters as they are typed. (Default: Normal)

Static memberDefaultPasswordText

String: Defines the default text to display in a DataGridViewTextBoxCell cell when the Type property is set to Password. Since 3.2.5

Instance memberEditType

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

Instance memberInputType

InputType: Specifies the type, min, max and step properties to associate to the <input> element.

Instance memberMaxInputLength

Int32: Returns or sets the maximum number of characters that can be entered into the cell editor. (Default: 0)

Throws:

Instance memberMultiline

Boolean: Returns or sets whether this is a multiline text box control. (Default: False)

Throws:

  • ArgumentException The property cannot be modified after the component has been created.

Instance memberTools

ComponentToolCollection: Returns the instance of ComponentToolCollection associated with this cell.

Instance memberValueType

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

Instance memberWatermark

String: Returns or sets the text to show when the textbox is empty.

Methods

Instance memberInitializeEditingControl(editor, style)

Initializes the control used to edit the cell.

ParameterTypeDescription
editorControlThe Control that is used to edit the cell.
styleDataGridViewCellStyleThe DataGridViewCellStyle that is in effect for the cell entering edit mode.

Throws:

Instance memberResetInputType()

Resets the InputType property.

Instance memberShouldUpdate()

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

NameDescription
ICommandSourceDefines an object that can invoke a Command.