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

VGridControlBase.CopyToClipboard() Method

In This Article

Copies the focused cell or selection to the Clipboard as text.

Namespace: DevExpress.XtraVerticalGrid

Assembly: DevExpress.XtraVerticalGrid.v24.2.dll

NuGet Packages: DevExpress.Win.Navigation, DevExpress.Win.VerticalGrid

#Declaration

public virtual void CopyToClipboard()

#Remarks

The CopyToClipboard method copies the focused cell or selection (see VGridOptionsSelectionAndFocus.MultiSelect) to the Clipboard as text. If the VGridOptionsBehavior.CopyToClipboardWithRowHeaders option is enabled, the CopyToClipboard method also copies the row’s caption to the Clipboard.

The CopyToClipboard method is automatically called when the CTRL+C shortcut is pressed while a control is focused.

See Also