# DataGridViewComboBoxEditingControl

URL: https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcomboboxeditingcontrol

Version: 4.1
Namespace: **Wisej.Web**

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

- Control
- ListControl
- ComboBox
- [DataGridViewComboBoxEditingControl](/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcomboboxeditingcontrol)
Represents aComboBox control that can be hosted in a [DataGridViewComboBoxCell](/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcomboboxcell) .

- C# - VB.NET

```csharp
public class DataGridViewComboBoxEditingControl : ComboBox, IDataGridViewEditingControl
```

```visual
Public Class DataGridViewComboBoxEditingControl
    Inherits ComboBox
    Implements IDataGridViewEditingControl
```

## Constructors

### ![Instance member](/img/api/instance.png) DataGridViewComboBoxEditingControl()

Initializes a new instance of the [DataGridViewComboBoxEditingControl](/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcomboboxeditingcontrol) class.

## Properties

### ![Instance member](/img/api/instance.png) DataGridView

DataGridView : Returns or sets theDataGridView that contains the text box control.

## Methods

### ![Instance member](/img/api/instance.png) ApplyCellStyleToEditingControl(style)

Changes the control's user interface (UI) to be consistent with the specified cell style.

| Parameter | Type | Description | **style** | [DataGridViewCellStyle](/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellstyle) | The [DataGridViewCellStyle](/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellstyle) to use as the model for the UI. 

### ![Instance member](/img/api/instance.png) GetEditingControlFormattedValue()

Retrieves the formatted value of the cell.

**Returns:**[String](https://docs.microsoft.com/dotnet/api/system.string) . An [String](https://docs.microsoft.com/dotnet/api/system.string) that represents the formatted version of the cell contents.

### ![Protected member](/img/api/protected.png) OnSelectedItemChanged(e)

| Parameter | Type | Description | **e** | [EventArgs](https://docs.microsoft.com/dotnet/api/system.eventargs) | 

### ![Protected member](/img/api/protected.png) OnTextChanged(e)

| Parameter | Type | Description | **e** | [EventArgs](https://docs.microsoft.com/dotnet/api/system.eventargs) | 

### ![Instance member](/img/api/instance.png) PrepareEditingControlForEdit(selectAll)

Prepares the currently selected cell for editing.

| Parameter | Type | Description | **selectAll** | [Boolean](https://docs.microsoft.com/dotnet/api/system.boolean) | true to select the cell contents; otherwise, false. 

## Implements

| Name | Description | [IDataGridViewEditingControl](/api/wisej.web/lists-and-grids/datagridview/wisej.web.idatagridvieweditingcontrol) | Defines common functionality for controls that are hosted within cells of aDataGridView . | [IUserData](/api/wisej.web/interfaces/wisej.web.iuserdata) | Provides access to the `UserData` and `Tag` properties associated to the component implementing this interface. | [IBindableComponent](/api/wisej.web/data-binding/wisej.web.ibindablecomponent) | Bindable components implement this interface. | [IDropTarget](/api/wisej.web/interfaces/wisej.web.idroptarget) | Controls that support drag & drop operations implement this interface. | [ILabel](/api/wisej.web/interfaces/wisej.web.ilabel) | Provides access to the [LabelWrapper](/api/wisej.web/editors/wisej.web.labelwrapper) associated with the controls that implement this interface. | [IReadOnly](/api/wisej.web/interfaces/wisej.web.ireadonly) | Provides access to the [ReadOnly](/api/wisej.web/interfaces/wisej.web.ireadonly#readonly) property for coontrols that support the read-only mode. | [IModified](/api/wisej.web/interfaces/wisej.web.imodified) | Provides access to the [Modified](/api/wisej.web/interfaces/wisej.web.imodified#modified) property and [ModifiedChanged](/api/wisej.web/interfaces/wisej.web.imodified#modifiedchanged) event for controls that implement this interface. | [IValidation](/api/wisej.web/interfaces/wisej.web.ivalidation) | Provides access to the validation events and properties property for controls that support validation. | [IWisejComponent](/api/wisej.core/interfaces/wisej.core.iwisejcomponent) | All wisej components implement this interface. | [IWisejControl](/api/wisej.core/interfaces/wisej.core.iwisejcontrol) | All wisej controls derived from theControl class must implement this interface. | [IWisejSerializable](/api/wisej.core/interfaces/wisej.core.iwisejserializable) | Allows an object to serialize itself.
