Back to Devexpress

TableView.ClipboardDataProvider Property

wpf-devexpress-dot-xpf-dot-grid-dot-tableview-d80fad9b.md

latest2.5 KB
Original Source

TableView.ClipboardDataProvider Property

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

Namespace : DevExpress.Xpf.Grid

Assembly : DevExpress.Xpf.Grid.v25.2.dll

NuGet Package : DevExpress.Wpf.Grid.Core

Declaration

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

Property Value

TypeDescription
GridClipboardDataProvider

An object that returns data for the clipboard in a variety of formats.

|

Remarks

Use this property to access a GridClipboardDataProvider object. This object’s methods allow you to obtain selected grid data that is passed to the clipboard when the user presses Ctrl + C. The following data formats are supported: plain text, rich text, plain unicode text, CSV, Biff8, HTML. For example, the GridClipboardDataProvider.GetCsvData method returns data for the clipboard in the plain text format.

csharp
tableView.ClipboardDataProvider.GetCsvData();

// The method returns the following value:
//
// State,Sales,Sales vs Target,Profit,Satisfaction,Market Share
// California,468M,2.77%,44M,4.6,34%
// Colorado,71M,0.36%,5M,4.1,28%
// Connecticut,73M,3.38%,8M,2.9,24%
vb
tableView.ClipboardDataProvider.GetCsvData()

' The method returns the following value:
'
' State,Sales,Sales vs Target,Profit,Satisfaction,Market Share
' California,468M,2.77%,44M,4.6,34%
' Colorado,71M,0.36%,5M,4.1,28%
' Connecticut,73M,3.38%,8M,2.9,24%

See Also

TableView Class

TableView Members

DevExpress.Xpf.Grid Namespace