DataControlBase.PasteMode Property
Gets or sets how to paste rows from the clipboard to the GridControl. This is a dependency property.
Namespace: DevExpress.WinUI.Grid
Assembly: DevExpress.WinUI.Grid.v23.2.dll
NuGet Package: DevExpress.WinUI
#Declaration
#Property Value
Type | Description |
---|---|
Paste |
Specifies how to paste rows from the clipboard to the Grid |
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 Win |
None | Data pasting is disabled. |
Update | Pasted data updates existing cells of the target control. |
#Remarks
The GridControl allows you and your users to paste data from the clipboard in two different modes:
In Append mode (PasteMode is set to Append), the GridControl adds pasted data as new rows:
In Update mode (PasteMode is set to Update), the GridControl updates existing cells when you paste data: