DataControlBase.CopyToClipboard() Method

Copies the values displayed within selected row(s) or cell(s) to the clipboard.

Namespace: DevExpress.Xpf.Grid

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

Declaration

public void CopyToClipboard()
Public Sub CopyToClipboard

Remarks

Copying view data to the clipboard is allowed if the DataViewBase.ClipboardCopyAllowed property is set to true.

The CopyToClipboard method copies the selected rows or cells to the clipboard. Only the contents of the visible columns are copied. For group rows, this method copies only the values of the grouping columns. Records hidden within the collapsed group rows aren't included. Records in the clipboard are separated by the newline strings ("\r\n"). The TAB character ("\t") is used to separate the values within a record.

The focused row (if displayed) is always copied, regardless of its selected state.

If the DataViewBase.ClipboardCopyWithHeaders option is enabled, the CopyToClipboard method also copies the column captions to the clipboard.

To learn more, see Clipboard Management.

See Also