Back to Devexpress

DataViewBase.ClipboardCopyOptions Property

wpf-devexpress-dot-xpf-dot-grid-dot-dataviewbase-5cff54be.md

latest2.5 KB
Original Source

DataViewBase.ClipboardCopyOptions Property

Gets or sets with which formats (RTF, HTML, Biff8(xls), CSV, Text, UnicodeText) the data copied from this GridControl should be compatible. This is a dependency property.

Namespace : DevExpress.Xpf.Grid

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

NuGet Package : DevExpress.Wpf.Grid.Core

Declaration

csharp
public ClipboardCopyOptions ClipboardCopyOptions { get; set; }
vb
Public Property ClipboardCopyOptions As ClipboardCopyOptions

Property Value

TypeDescription
ClipboardCopyOptions

A value that specifies with which formats (RTF, HTML, Biff8(xls), CSV, Text, UnicodeText) the copied data should be compatible.

|

Available values:

NameDescription
None

Data is copied to the clipboard as a simple plain text.

| | Csv |

Data is copied to the clipboard compatible with the Csv format.

| | Excel |

Data is copied to the clipboard compatible with the Excel format (XLS/XLSX).

| | Html |

Data is copied to the clipboard compatible with the Html format.

| | Rtf |

Data is copied to the clipboard compatible with the Rtf format

| | Txt |

Data is copied to the clipboard compatible with the TXT format

| | All |

Data is copied to the clipboard, compatible with the RTF, HTML, XLS (Biff8), CSV, UnicodeText and Text formats.

|

Remarks

In the following code sample, the data is compatible with the Csv and Excel formats only:

xaml
<dxg:GridControl>
   <dxg:GridControl.View>
      <dxg:TableView ClipboardCopyOptions="Csv, Excel" />
   </dxg:GridControl.View>
</dxg:GridControl>

Note

The ClipboardCopyOptions property works only when the ClipboardMode property value is ClipboardMode.Formatted.

See Also

Copy Operations

DataViewBase Class

DataViewBase Members

DevExpress.Xpf.Grid Namespace