Occurs when some information is pasted from the clipboard to the grid.
NuGet Package: DevExpress.Wpf.Grid.Core
public event PastingFromClipboardEventHandler PastingFromClipboard
Public Event PastingFromClipboard As PastingFromClipboardEventHandler
The PastingFromClipboard event's data class is.
GridControl provide two events that allow you to manually process clipboard operations.
- The GridControl.CopyingToClipboard event is fired before row/cell values are copied to the clipboard by an end-user, or in code. To cancel default processing, set the event parameter’s Handled property to true. This event isn’t fired if the DataControlBase.ClipboardCopyMode property is set to None.
The PastingFromClipboard event is fired after an end-user has pressed Ctrl+V or Shift+Ins.
GridControl raises the PastingFromClipboard event when the Ctrl+V key combination is pressed, no matter in what state other keyboard buttons are. This allows you to process additional pasting scenarios (e.g. pressing Ctrl+Shift+V) by checking the Keyboard.Modifiers property value.
To learn more, see Clipboard Management.
To detect whether the GridControl contains an active cell editor at runtime, use the DataViewBase.ActiveEditor property.