# DataGridViewTextBoxColumn

Namespace: **Wisej.Web**

Assembly: **Wisej.Framework** (3.0.0.0)

* [DataGridViewElement](/api/v3.0/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewelement.md)
  * [DataGridViewBand](/api/v3.0/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewband.md)
    * [DataGridViewColumn](/api/v3.0/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcolumn.md)
      * [DataGridViewTextBoxColumn](/api/v3.0/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewtextboxcolumn.md)

Represents a [DataGridView](/api/v3.0/wisej.web/lists-and-grids/datagridview.md) column that contains a collection of [DataGridViewTextBoxCell](/api/v3.0/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewtextboxcell.md) cells.

{% tabs %}
{% tab title="C#" %}

```csharp
public class DataGridViewTextBoxColumn : DataGridViewColumn
```

{% endtab %}

{% tab title="VB.NET" %}

```visual-basic
Public Class DataGridViewTextBoxColumn
    Inherits DataGridViewColumn
```

{% endtab %}
{% endtabs %}

## Constructors

### ![](/files/uCY6T77rh488FWHzpJ6P)DataGridViewTextBoxColumn()

Initializes a new instance of the [DataGridViewTextBoxColumn](/api/v3.0/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewtextboxcolumn.md) class.

### ![](/files/uCY6T77rh488FWHzpJ6P)DataGridViewTextBoxColumn(cellTemplate)

Initializes a new instance of the [DataGridViewTextBoxColumn](/api/v3.0/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewtextboxcolumn.md) class.

| Name             | Type                                                                                                             | Description                                                                                                                                        |
| ---------------- | ---------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- |
| **cellTemplate** | [DataGridViewTextBoxCell](/api/v3.0/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewtextboxcell.md) | An existing [DataGridViewTextBoxCell](/api/v3.0/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewtextboxcell.md) to use as a template. |

## Properties

### ![](/files/uCY6T77rh488FWHzpJ6P)AcceptsReturn

[Boolean](https://docs.microsoft.com/en-us/dotnet/api/system.boolean): Returns or sets whether pressing ENTER in a multiline [TextBox](/api/v3.0/wisej.web/editors/wisej.web.textbox.md) control creates a new line of text in the control or activates the default button for the form.

### ![](/files/uCY6T77rh488FWHzpJ6P)AcceptsTab

[Boolean](https://docs.microsoft.com/en-us/dotnet/api/system.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.

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

### ![](/files/uCY6T77rh488FWHzpJ6P)AutoComplete

[AutoComplete](/api/v3.0/wisej.web/enumerations/wisej.web.autocomplete.md): Returns of sets whether the browser can auto complete the field with values previously entered by the user.

### ![](/files/uCY6T77rh488FWHzpJ6P)AutoCompleteList

[String\[\]](https://docs.microsoft.com/en-us/dotnet/api/system.string): Identifies a list of pre-defined options to suggest to the user.

### ![](/files/uCY6T77rh488FWHzpJ6P)CellTemplate

[DataGridViewCell](/api/v3.0/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcell.md): Returns or sets the template used to model cell appearance.

**Throws:**

* [InvalidOperationException](https://docs.microsoft.com/en-us/dotnet/api/system.invalidoperationexception) The type is null.
* [InvalidCastException](https://docs.microsoft.com/en-us/dotnet/api/system.invalidcastexception) The set type is not compatible with type [DataGridViewTextBoxCell](/api/v3.0/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewtextboxcell.md).

### ![](/files/uCY6T77rh488FWHzpJ6P)CharacterCasing

[CharacterCasing](/api/v3.0/wisej.web/editors/wisej.web.charactercasing.md): Returns or sets whether the cell editor modifies the case of characters as they are typed.

### ![](/files/uCY6T77rh488FWHzpJ6P)InputType

[InputType](/api/v3.0/wisej.web/editors/wisej.web.inputtype.md): Specifies the type, min, max and step properties to associate to the  element of the cell editor control.

### ![](/files/uCY6T77rh488FWHzpJ6P)MaxInputLength

[Int32](https://docs.microsoft.com/en-us/dotnet/api/system.int32): Returns or sets the maximum number of characters that can be entered into the text box.

This value is inherited by all the cells in the column that do not specify a value for this property. **Throws:**

* [InvalidOperationException](https://docs.microsoft.com/en-us/dotnet/api/system.invalidoperationexception) The value of the [CellTemplate](#celltemplate) property is null.

### ![](/files/uCY6T77rh488FWHzpJ6P)Multiline

[Boolean](https://docs.microsoft.com/en-us/dotnet/api/system.boolean): Returns or sets whether this is a multiline text box control.

**Throws:**

* [ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/system.argumentexception) The property cannot be modified after the component has been created.

### ![](/files/uCY6T77rh488FWHzpJ6P)Tools

[ComponentToolCollection](/api/v3.0/wisej.web/editors/wisej.web.componenttoolcollection.md): Returns the instance of [ComponentToolCollection](/api/v3.0/wisej.web/editors/wisej.web.componenttoolcollection.md) associated with this control.

### ![](/files/uCY6T77rh488FWHzpJ6P)ValueType

[Type](https://docs.microsoft.com/en-us/dotnet/api/system.type): Returns or sets the data type of the values in the column's cells.

### ![](/files/uCY6T77rh488FWHzpJ6P)Watermark

[String](https://docs.microsoft.com/en-us/dotnet/api/system.string): Returns or sets the text to show when the textbox is empty.

## Implements

| Name                                                                                   | Description                                    |
| -------------------------------------------------------------------------------------- | ---------------------------------------------- |
| [IWisejComponent](/api/v3.0/wisej.core/interfaces/wisej.core.iwisejcomponent.md)       | All wisej components implement this interface. |
| [IWisejSerializable](/api/v3.0/wisej.core/interfaces/wisej.core.iwisejserializable.md) | Allows an object to serialize itself.          |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.wisej.com/api/v3.0/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewtextboxcolumn.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
