Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TableView.PasteMode Property

Gets or sets a value that specifies how the rows are pasted to the TableView. This is a dependency property.

Namespace: DevExpress.Xpf.Grid

Assembly: DevExpress.Xpf.Grid.v24.2.dll

NuGet Package: DevExpress.Wpf.Grid.Core

#Declaration

public PasteMode PasteMode { get; set; }

#Property Value

Type Description
PasteMode

A PasteMode enumeration value that specifies how the rows are pasted to the TableView.

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

Refer to the Paste Operations topic to learn more.

See Also