PasteMode Enum
Contains values that specify how data is pasted to a target grid/treelist control.
Namespace: DevExpress.Export
Assembly: DevExpress.Data.v18.1.dll
Declaration
Members
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. |
Related API Members
The following properties accept/return PasteMode values:
Library | Related API Members |
---|---|
Cross-Platform Class Library | ClipboardOptions.PasteMode |
WPF Controls | TableView.PasteMode |
TreeListView.PasteMode |
Remarks
Paste operations are supported by the following controls:
- GridView in the GridControl (see the ClipboardOptions.PasteMode setting available from the GridView.OptionsClipboard object)
- TreeList (see the ClipboardOptions.PasteMode setting available from the TreeList.OptionsClipboard object)
- TableView in the GridControl (see TableView.PasteMode)
- TreeListView in the GridControl (see TreeListView.PasteMode)
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the PasteMode enum.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.