All docs
V20.1
20.1
19.2
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

GridView.ClipboardDataProvider Property

Gets an object that provides data for the clipboard in a variety of formats (plain text, plain unicode text, rich text, CSV, BIFF8, HTML).

Namespace: DevExpress.XtraGrid.Views.Grid

Assembly: DevExpress.XtraGrid.v20.1.dll

Declaration

[DXCategory("Data")]
[Browsable(false)]
public virtual GridClipboardDataProvider ClipboardDataProvider { get; }
<DXCategory("Data")>
<Browsable(False)>
Public Overridable ReadOnly Property ClipboardDataProvider As GridClipboardDataProvider

Property Value

Type Description
GridClipboardDataProvider

An object that provides data for the clipboard in a variety of formats (plain text, plain unicode text, rich text, CSV, BIFF8, HTML).

Remarks

The ClipboardDataProvider property returns a GridClipboardDataProvider class instance. This object provides data for the clipboard in a variety of formats (plain text, rich text, plain unicode text, CSV, BIFF8, HTML). Use the provider's methods to get data that is currently selected in the control and will be passed to the clipboard if the user presses Ctrl+C. For example, the GridClipboardDataProvider.GetTextData method returns data for the clipboard in the plain text format.

Examples

The GridClipboardDataProvider allows you to get data that are currently selected in the grid and will be passed to the clipboard. The figure and code below show the selected rows in the control, usage of the GridClipboardDataProvider.GetCsvData method, and the returned value.

gridView1.ClipboardDataProvider.GetCsvData();

// The method returns the following value:
//
// State,Sales,Sales vs Target,Profit,Satisfaction,Market Share
// Arizona,73M,-0.94%,-4M,3.6,11%
// North Carolina,71M,-1.11%,-17M,3,12%
See Also