# DataGridViewClipboardCopyMode

Namespace: **Wisej.Web**

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

Defines how content is copied from a [DataGridView](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview) control to the Clipboard.

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

```csharp
public enum DataGridViewClipboardCopyMode : Enum
```

{% endtab %}

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

```visual-basic
Public Enum DataGridViewClipboardCopyMode As [Enum]
```

{% endtab %}
{% endtabs %}

## Fields

| Name                              | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| --------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **CopyToClient**                  | The text copied to the clipboard is also always sent to the client's clipboard automatically.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| **Disable**                       | Copying to the Clipboard is disabled.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| **EnableAlwaysIncludeHeaderText** | The text values of selected cells is copied to the Clipboard. The text in the header is included.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| **EnableWithAutoHeaderText**      | The text values of selected cells is copied to the Clipboard. The text in the row header or column header is included only when the [SelectionMode](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/..#selectionmode) property is set to [RowHeaderSelect](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewselectionmode#fields) or [ColumnHeaderSelect](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewselectionmode#fields) or [RowColumnHeaderSelect](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewselectionmode#fields) and at least one header is selected. |
| **EnableWithoutHeaderText**       | The text values of selected cells is copied to the Clipboard. The text in the header is not included.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| **ExcludeUnselectedColumns**      | Excludes the unselected columns in between the first and last selected columns.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| **ExcludeUnselectedRows**         | Excludes the unselected rows in between the first and last selected rows.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |

## Used By

| Name                                                                                                                     | Description                                                                                                                                                                                                             |
| ------------------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [DataGridView.ClipboardCopyMode](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/..#clipboardcopymode) | Returns or sets a value that indicates whether users can copy cell text values to the [Clipboard](https://docs.wisej.com/api/wisej.web/general/wisej.web.clipboard) and whether row and column header text is included. |
