Condividi tramite


DataGrid.ClipboardCopyMode Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets or sets a value that indicates how data is copied to the clipboard.

Namespace:  System.Windows.Controls
Assembly:  System.Windows.Controls.Data (in System.Windows.Controls.Data.dll)

Syntax

'Declaration
Public Property ClipboardCopyMode As DataGridClipboardCopyMode
public DataGridClipboardCopyMode ClipboardCopyMode { get; set; }
<sdk:DataGrid ClipboardCopyMode="clipboardCopyModeValue"/>

XAML Values

Property Value

Type: System.Windows.Controls.DataGridClipboardCopyMode
A value that indicates how data is copied to the clipboard.

Remarks

Use this property to specify whether a user can copy DataGrid content to the clipboard. If copying is allowed, this property can specify whether the clipboard copy will include column headers.

Version Information

Silverlight

Supported in: 5, 4

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.