Back to Devexpress

ClipboardNodePastingEventArgs.PasteMode Property

windowsforms-devexpress-dot-xtratreelist-dot-clipboardnodepastingeventargs-c34eaa4c.md

latest2.7 KB
Original Source

ClipboardNodePastingEventArgs.PasteMode Property

Gets or sets whether only valid rows or all rows are pasted to the control.

Namespace : DevExpress.XtraTreeList

Assembly : DevExpress.XtraTreeList.v25.2.dll

NuGet Packages : DevExpress.Win.Navigation, DevExpress.Win.TreeList

Declaration

csharp
public RowPasteMode PasteMode { get; set; }
vb
Public Property PasteMode As RowPasteMode

Property Value

TypeDescription
RowPasteMode

A value that specifies whether only valid rows or all rows are pasted to the control.

|

Available values:

NameDescription
Default

The same value as OnlyValidRow.

| | OnlyValidRow |

Only valid rows are pasted. Invalid rows are skipped.

| | Force |

Forces the control to paste a row, even if the row contains invalid data.

|

Remarks

By default, only valid rows are allowed to be added to the target control. A valid row is the one that contains only valid values. Invalid rows are skipped. You can check the validity of rows and individual cells with the ClipboardNodePastingEventArgs.IsNodeValid and ClipboardNodePastingEventArgs.IsValueValid methods.

To force the pasting of rows that are considered invalid, set the PasteMode property to Force.

Values of all rows are pasted using the TreeList.SetRowCellValue method.

See Also

IsNodeValid()

IsValueValid

GetValidValues()

GetInvalidValues()

ClipboardNodePastingEventArgs Class

ClipboardNodePastingEventArgs Members

DevExpress.XtraTreeList Namespace