This samples lets you select a range in one grid and drag it to another grid or rich edit box.
Features
Simple code is used to add drag-and-drop support to a grid. There is more work involved when adding drag-and-drop support to a rich text box than to Essential Grid.
Formatting information is retained when both the source and target are grids.
By default, the grid supports drag-and-drop.
Interactive Features
To observe the behavior, try the following.
Select a range of cells to be dragged using mouse pointer.
Move the pointer to the borders of a selected range until the OLE drag-and-drop icon(a small rectangular box) appears.
The property named 'ShowMessageBoxOnDrop', that allows us to control the display of messagebox before dropping cell contents from source to the destination. By default its value is false.
Note that, the styles in Grid 1 are being maintained in Grid 2 as well.
Note: Data from other controls can also be dragged.