Skip to content

Handle MouseMove and MouseDown events to obtain the grid cell under the cursor position and get the cell's data.

License

Notifications You must be signed in to change notification settings

DevExpress-Examples/winforms-richedit-rich-drag-and-drop-gridview-cell-data

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rich Text Editor for WinForms - How to Drag-and-Drop GridView Cell Data

This example illustrates how to drag-and-drop GridView cell data to a RichEditControl document.

Handle GridView's MouseMove and MouseDown events to obtain the grid cell under the cursor position via the GridHitInfo object and get the cell's data.

In the RichEditControl.DragOver event handler, update the RichEditControl.Document.CaretPosition property value according to the current mouse position. In the RichEditControl.DragDrop event, just insert the stored text to the caret position and call the RichEditControl.Focus method to focus the RichEditControl.

Files to Review

More Examples

Documentation

Does this example address your development requirements/objectives?

(you will be redirected to DevExpress.com to submit your response)

About

Handle MouseMove and MouseDown events to obtain the grid cell under the cursor position and get the cell's data.

Topics

Resources

License

Stars

Watchers

Forks