Skip to main content

VGridControlBase.CopyToClipboard() Method

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

Namespace: DevExpress.XtraVerticalGrid

Assembly: DevExpress.XtraVerticalGrid.v23.2.dll

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


public virtual void CopyToClipboard()


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