Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

DataControlBase.CopyToClipboard() Method

In This Article

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

Namespace: DevExpress.Xpf.Grid

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

NuGet Package: DevExpress.Wpf.Grid.Core

#Declaration

public void CopyToClipboard()

#Remarks

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.

To learn more, see Clipboard Management.

See Also