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

DataControlBase.PasteMode Property

Gets or sets how to paste rows from the clipboard to the GridControl. This is a dependency property.

Namespace: DevExpress.WinUI.Grid

Assembly: DevExpress.WinUI.Grid.v22.1.dll

NuGet Package: DevExpress.WinUI

Declaration

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

Property Value

Type Description
PasteMode

Specifies how to paste rows from the clipboard to the GridControl.

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

The GridControl allows you and your users to paste data from the clipboard in two different modes:

  • In Append mode (PasteMode is set to Append), the GridControl adds pasted data as new rows:

    WinUI Grid - Append Data

  • In Update mode (PasteMode is set to Update), the GridControl updates existing cells when you paste data:

    WinUI Grid - Update Data

See Also