# DataGridViewDateTimePickerEditingControl

Namespace: **Wisej.Web**

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

* [Control](https://docs.wisej.com/api/v2.5/wisej.web/general/control)
  * [DateTimePicker](https://docs.wisej.com/api/v2.5/wisej.web/editors/wisej.web.datetimepicker)
    * [DataGridViewDateTimePickerEditingControl](https://docs.wisej.com/api/v2.5/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewdatetimepickereditingcontrol)

Represents a [DateTimePicker](https://docs.wisej.com/api/v2.5/wisej.web/editors/wisej.web.datetimepicker) control that can be hosted in a [DataGridViewDateTimePickerCell](https://docs.wisej.com/api/v2.5/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewdatetimepickercell).

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

```csharp
public class DataGridViewDateTimePickerEditingControl : DateTimePicker, IDataGridViewEditingControl
```

{% endtab %}

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

```visual-basic
Public Class DataGridViewDateTimePickerEditingControl
    Inherits DateTimePicker
    Implements IDataGridViewEditingControl
```

{% endtab %}
{% endtabs %}

## Constructors

### ![](https://314832588-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MTHCfAYyBPycFG90wsw-4198400543%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media\&token=060b281d-9363-48a1-a0f9-788ad1831e96)DataGridViewDateTimePickerEditingControl()

## Properties

### ![](https://314832588-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MTHCfAYyBPycFG90wsw-4198400543%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media\&token=060b281d-9363-48a1-a0f9-788ad1831e96)DataGridView

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

## Methods

### ![](https://314832588-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MTHCfAYyBPycFG90wsw-4198400543%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media\&token=060b281d-9363-48a1-a0f9-788ad1831e96)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/v2.5/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellstyle) | The [DataGridViewCellStyle](https://docs.wisej.com/api/v2.5/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellstyle) in effect for the cell entering edit mode. |

### ![](https://314832588-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MTHCfAYyBPycFG90wsw-4198400543%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media\&token=060b281d-9363-48a1-a0f9-788ad1831e96)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://314832588-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MTHCfAYyBPycFG90wsw-4198400543%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media\&token=060b281d-9363-48a1-a0f9-788ad1831e96)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/v2.5/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/v2.5/wisej.web/lists-and-grids/datagridview). |
| [IBindableComponent](https://docs.wisej.com/api/v2.5/wisej.web/data-binding/wisej.web.ibindablecomponent)                                   | Bindable components implement this interface.                                                                                                                       |
| [IWisejComponent](https://docs.wisej.com/api/v2.5/wisej.core/interfaces/wisej.core.iwisejcomponent)                                         | All wisej components implement this interface.                                                                                                                      |
| [IWisejControl](https://docs.wisej.com/api/v2.5/wisej.core/interfaces/wisej.core.iwisejcontrol)                                             | All wisej controls derived from the [Control](https://docs.wisej.com/api/v2.5/wisej.web/general/control) class must implement this interface.                       |
| [IWisejSerializable](https://docs.wisej.com/api/v2.5/wisej.core/interfaces/wisej.core.iwisejserializable)                                   | Allows an object to serialize itself.                                                                                                                               |
