Skip to main content

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.v24.1.dll

NuGet Package: DevExpress.Wpf.Grid.Core

Declaration

public event EventHandler<ClipboardRowPastingEventArgs> ClipboardRowPasting

Event Data

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

Property Description
Cancel Gets or sets the value indicating whether to prevent pasting a row values.
CellValues Gets an array of pasted values.
Columns Gets an array of target columns.
DataRowCount Gets the total count of rows to process.
ErrorText A text that contains information about an error that occurred.
IsValid Checks whether the pasted data is valid.
OriginalCellValues Gets the row’s original values.
RowCount Gets the total count of rows to process, including rows with headers.
RowHandle Gets 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