# MaskedTextBoxColumn

The **MaskedTextBoxColumn** class is a specialized type of the **DataGridViewColumn** class used to logically host cells that display **MaskedTextBox** controls. A **MaskedTextBoxColumn** has an associated **DataGridViewMaskedTextBoxCell** in every **DataGridViewRow** that intersects it. Each cell contains a **MaskedTextBox** control.

You can populate the cells manually by setting their Value properties. Alternatively, you can bind the column to the data source indicated by the **DataGridView\.DataSource** property. If the **DataGridView** is bound to a database table, set the column **DataPropertyName** property to the name of a column in the table. If the **DataGridView** is bound to a collection of objects, set the **DataPropertyName** property to the name of an object property.

{% hint style="info" %}
For a full list of properties, methods and events see the [API documentation](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewmaskedtextboxcolumn).
{% endhint %}

## Features

### Preset Masks

The **MaskedTextBox's Mask** property features a popup dialog to quickly select one of the common predefined masks.

![](https://553579532-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MF1D11gPs_az3xaKusw%2Fuploads%2Fgit-blob-dd4851b84b724c274a28052ea2858f5c5176aa32%2Fimage.png?alt=media)
