Skip to main content
A newer version of this page is available. .

ClipboardOptions.PasteMode Property

Gets or sets data pasting mode.

Namespace: DevExpress.Export

Assembly: DevExpress.Data.v18.2.dll

Declaration

[DefaultValue(PasteMode.Default)]
[XtraSerializableProperty]
public PasteMode PasteMode { get; set; }

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.

Property Paths

You can access this nested property as listed below:

Library Object Type Path to PasteMode
WinForms Controls AdvBandedGridView
.OptionsClipboard.PasteMode
BandedGridView
.OptionsClipboard.PasteMode
GridView
.OptionsClipboard.PasteMode
ResourcesTree
.OptionsClipboard.PasteMode
TreeList
.OptionsClipboard.PasteMode
Reporting XRDesignFieldList
.OptionsClipboard.PasteMode
XRDesignReportExplorer
.OptionsClipboard.PasteMode

Remarks

Certain controls provide events to manage and cancel data pasting operations.

See Clipboard - Copy and Paste Operations. Data Formatting to learn more.

The following code snippets (auto-collected from DevExpress Examples) contain references to the PasteMode property.

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.

See Also