# DataGridViewNumericUpDownEditingControl

Namespace: **Wisej.Web**

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

* [Control](https://docs.wisej.com/api/v3.0/wisej.web/general/control)
  * [UpDownBase](https://docs.wisej.com/api/v3.0/wisej.web/editors/wisej.web.updownbase)
    * [NumericUpDown](https://docs.wisej.com/api/v3.0/wisej.web/editors/wisej.web.numericupdown)
      * [DataGridViewNumericUpDownEditingControl](https://docs.wisej.com/api/v3.0/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewnumericupdowneditingcontrol)

Represents a [NumericUpDown](https://docs.wisej.com/api/v3.0/wisej.web/editors/wisej.web.numericupdown) control that can be hosted in a [DataGridViewNumericUpDownCell](https://docs.wisej.com/api/v3.0/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewnumericupdowncell).

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

```csharp
public class DataGridViewNumericUpDownEditingControl : NumericUpDown, IDataGridViewEditingControl
```

{% endtab %}

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

```visual-basic
Public Class DataGridViewNumericUpDownEditingControl
    Inherits NumericUpDown
    Implements IDataGridViewEditingControl
```

{% endtab %}
{% endtabs %}

## Constructors

### ![](https://2647619304-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHOivImCoV8KSJbQyp6QI%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)DataGridViewNumericUpDownEditingControl()

## Properties

### ![](https://2647619304-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHOivImCoV8KSJbQyp6QI%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)DataGridView

[DataGridView](https://docs.wisej.com/api/v3.0/wisej.web/lists-and-grids/datagridview): Returns or sets the [DataGridView](https://docs.wisej.com/api/v3.0/wisej.web/lists-and-grids/datagridview) that contains the text box control.

## Methods

### ![](https://2647619304-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHOivImCoV8KSJbQyp6QI%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)ApplyCellStyleToEditingControl(style)

Adapts the edit control's properties to be consistent with the specified cell style.

| Parameter | Type                                                                                                                            | Description                                                                                                                                                                    |
| --------- | ------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| **style** | [DataGridViewCellStyle](https://docs.wisej.com/api/v3.0/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellstyle) | The [DataGridViewCellStyle](https://docs.wisej.com/api/v3.0/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellstyle) in effect for the cell entering edit mode. |

### ![](https://2647619304-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHOivImCoV8KSJbQyp6QI%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)GetEditingControlFormattedValue()

Retrieves the formatted value of the cell.

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

### ![](https://2647619304-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHOivImCoV8KSJbQyp6QI%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)PrepareEditingControlForEdit(selectAll)

Prepares the edit control for editing.

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

## Implements

| Name                                                                                                                                        | Description                                                                                                                                                                 |
| ------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [IDataGridViewEditingControl](https://docs.wisej.com/api/v3.0/wisej.web/lists-and-grids/datagridview/wisej.web.idatagridvieweditingcontrol) | Defines common functionality for controls that are hosted within cells of a [DataGridView](https://docs.wisej.com/api/v3.0/wisej.web/lists-and-grids/datagridview).         |
| [IBindableComponent](https://docs.wisej.com/api/v3.0/wisej.web/data-binding/wisej.web.ibindablecomponent)                                   | Bindable components implement this interface.                                                                                                                               |
| [ILabel](https://docs.wisej.com/api/v3.0/wisej.web/interfaces/wisej.web.ilabel)                                                             | Provides access to the [LabelWrapper](https://docs.wisej.com/api/v3.0/wisej.web/editors/wisej.web.labelwrapper) associated with the controls that implement this interface. |
| [IReadOnly](https://docs.wisej.com/api/v3.0/wisej.web/interfaces/wisej.web.ireadonly)                                                       | Provides access to the [ReadOnly](https://docs.wisej.com/api/v3.0/interfaces/wisej.web.ireadonly#readonly) property for coontrols that support the read-only mode.          |
| [IWisejComponent](https://docs.wisej.com/api/v3.0/wisej.core/interfaces/wisej.core.iwisejcomponent)                                         | All wisej components implement this interface.                                                                                                                              |
| [IWisejControl](https://docs.wisej.com/api/v3.0/wisej.core/interfaces/wisej.core.iwisejcontrol)                                             | All wisej controls derived from the [Control](https://docs.wisej.com/api/v3.0/wisej.web/general/control) class must implement this interface.                               |
| [IWisejSerializable](https://docs.wisej.com/api/v3.0/wisej.core/interfaces/wisej.core.iwisejserializable)                                   | Allows an object to serialize itself.                                                                                                                                       |
