ClipboardRowPastingEventArgs.Values Property

Returns a dictionary that contains "target column - pasted value" pairs. You can modify pasted values in this dictionary to perform custom pasting.

Namespace: DevExpress.XtraGrid.Views.Grid

Assembly: DevExpress.XtraGrid.v20.1.dll


public GridPasteRowValues Values { get; }
Public ReadOnly Property Values As GridPasteRowValues

Property Value

Type Description

The dictionary of "target column - pasted value" pairs.


At the beginning of a paste operation, the control traverses through the pasted data to identify individual paste values (e.g., when pasting a text string, the TAB character is regarded as a separator between individual values). These individual paste values can be obtained from the ClipboardRowPastingEventArgs.OriginalValues read-only collection. The control then creates "target column - paste value" pairs, which can be accessed from the ClipboardRowPastingEventArgs.Values dictionary.

In PasteMode.Update mode (see the ClipboardOptions.PasteMode setting accessible from GridView.OptionsClipboard), the pasted data updates the rectangular cell block whose upper left corner is identified by the currently focused cell. The focused column is the first target column for the paste operation. The next visible column is the second target column, etc. The columns prior to the focused column are never updated, and they are not included in the ClipboardRowPastingEventArgs.Values dictionary.

See Also