Skip to main content

VGridControlBase.CopyToClipboard() Method

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

Namespace: DevExpress.XtraVerticalGrid

Assembly: DevExpress.XtraVerticalGrid.v24.1.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