System.Windows.Forms.DataGridViewClipboardCopyMode Enumeration

Defines constants that indicate whether content is copied from a System.Windows.Forms.DataGridView control to the Clipboard.

Syntax

public enum DataGridViewClipboardCopyMode

Remarks

This enumeration is used by the DataGridView.ClipboardCopyMode property to indicate whether users can copy the text values of selected cells to the Clipboard and whether row and column header text is included.

Members

Member NameDescription
Disable

Copying to the Clipboard is disabled.

EnableAlwaysIncludeHeaderText

The text values of selected cells can be copied to the Clipboard. Header text is included for rows and columns that contain selected cells.

EnableWithAutoHeaderText

The text values of selected cells can be copied to the Clipboard. Row or column header text is included for rows or columns that contain selected cells only when the DataGridView.SelectionMode property is set to DataGridViewSelectionMode.RowHeaderSelect or DataGridViewSelectionMode.ColumnHeaderSelect and at least one header is selected.

EnableWithoutHeaderText

The text values of selected cells can be copied to the Clipboard. Header text is not included.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0