DataControlBase.ClipboardCopyMode Property

Gets or sets how data is copied to the clipboard. This is a dependency property.

Namespace: DevExpress.Xpf.Grid

Assembly: DevExpress.Xpf.Grid.v20.1.Core.dll


public ClipboardCopyMode ClipboardCopyMode { get; set; }
Public Property ClipboardCopyMode As ClipboardCopyMode

Property Value

Type Description

A ClipboardCopyMode enumeration value that specifies the copy mode.


The following code sample demonstrates how to copy data without column headers:

<dxg:GridControl ClipboardCopyMode="ExcludeHeader">
      <dxg:TableView />

If the ClipboardCopyMode property is set to ClipboardCopyMode.Default or ClipboardCopyMode.IncludeHeader, the clipboard copy includes column headers.

Set the ClipboardCopyMode property to ClipboardCopyMode.None to prevent copying to the clipboard.

See Also