Back to Devexpress

TableView.ClipboardRowPasting Event

wpf-devexpress-dot-xpf-dot-grid-dot-tableview-8113b59f.md

latest2.8 KB
Original Source

TableView.ClipboardRowPasting Event

Occurs when an end-user pastes a new row from clipboard and allows you to process the inserted data or cancel the operation.

Namespace : DevExpress.Xpf.Grid

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

NuGet Package : DevExpress.Wpf.Grid.Core

Declaration

csharp
public event EventHandler<ClipboardRowPastingEventArgs> ClipboardRowPasting
vb
Public Event ClipboardRowPasting As EventHandler(Of ClipboardRowPastingEventArgs)

Event Data

The ClipboardRowPasting event's data class is ClipboardRowPastingEventArgs. The following properties provide information specific to this event:

PropertyDescription
CancelGets or sets the value indicating whether to prevent pasting a row values.
CellValuesGets an array of pasted values.
ColumnsGets an array of target columns.
DataRowCountGets the total count of rows to process.
ErrorTextA text that contains information about an error that occurred.
IsValidChecks whether the pasted data is valid.
OriginalCellValuesGets the row’s original values.
RowCountGets the total count of rows to process, including rows with headers.
RowHandleGets the pasted row’s handle.

Remarks

Refer to the Paste Operations topic to learn more.

Note

The ClipboardRowPasting event fires when the TableView.PasteMode property is set to PasteMode.Append or PasteMode.Update.

See Also

TableView Class

TableView Members

DevExpress.Xpf.Grid Namespace