ClipboardOptions.PasteMode Property
Gets or sets data pasting mode.
Namespace: DevExpress.Export
Assembly: DevExpress.Data.v26.1.dll
NuGet Package: DevExpress.Data
Declaration
Property Value
| Type | Default | Description |
|---|---|---|
| PasteMode | Default | Data pasting mode. |
Available values:
| Name | Description |
|---|---|
| Default | Data Grids: The Default mode is equivalent to None (data pasting is not allowed) for controls not in master-detail mode, and for master Views in master-detail mode. For detail Views in master-detail mode, the actual paste mode is determined by master Views. Tree Lists: The Default mode is equivalent to None (data pasting is not allowed). |
| Append | Pasted data is added as new rows to the target control. For the WinForms Tree List control, use the TreeListOptionsClipboard.PasteAsChildNodes setting to specify if pasted data is inserted as the focused node’s children or siblings. |
| None | Data pasting is disabled. |
| Update | Pasted data updates existing cells of the target control. |
Remarks
Note
The WinForms controls and components below do not support paste operations:
- All Data Grid Views except GridView and BandedGridView.
- GridLookUpEdit, SearchLookUpEdit, and TreeListLookUpEdit.
The WinForms controls contain the following events to manage and cancel data paste operations:
- WinForms Data Grid: GridView.ClipboardRowPasting
- WinForms TreeList and GanttControl: ClipboardNodePasting
See Clipboard - Copy and Paste Operations. Data Formatting to learn more.