GridControl.CopyingToClipboard Event
In This Article
Occurs when grid data is copied to the clipboard, allowing you to manually copy required data.
Namespace: DevExpress.Xpf.Grid
Assembly: DevExpress.Xpf.Grid.v14.2.dll
#Declaration
#Event Data
The CopyingToClipboard event's handler receives an argument of the CopyingToClipboardEventArgs type. The following properties provide information specific to this event:
Property | Description |
---|---|
Copy |
Gets or sets the value indicating whether to copy column headers to the clipboard. |
Grid |
Gets an array of cells whose values are about to be copied to the clipboard. |
Handled |
Gets or sets a value that indicates the present state of the event handling for a routed event as it travels the route.
Inherited from Routed |
Original |
Gets the original reporting source as determined by pure hit testing, before any possible Source adjustment by a parent class.
Inherited from Routed |
Routed |
Gets or sets the Routed |
Row |
Gets an array of handles that correspond to rows whose values are to be copied to the clipboard. |
Source | Gets the View that raised the event. |
#Remarks
Views provide two events that allow you to manually process clipboard operations.
- The 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 ClipboardCopyMode.None.
- The DataControlBase.PastingFromClipboard event is fired after an end-user has pressed Ctrl+V or Shift+Ins.
To learn more, see Clipboard Operations.
See Also