Skip to main content

ClipboardOptions.PasteMode Property

Gets or sets data pasting mode.

Namespace: DevExpress.Export

Assembly: DevExpress.Data.v24.1.dll

NuGet Package: DevExpress.Data

Declaration

[XtraSerializableProperty]
public virtual PasteMode PasteMode { get; set; }

Property Value

Type Description
PasteMode

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:

The WinForms controls contain the following events to manage and cancel data paste operations:

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

The following code snippet (auto-collected from DevExpress Examples) contains a reference 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