Drag and Drop of entire row

Hi!

I want to drag a row to another control on another form and the get the data from the underlaying data object. 
 I know how to retrieve the dta from a row:
Syncfusion.Windows.Forms.Grid.Grouping.GridRecordRow rec = e.TableCellIdentity.DisplayElement as Syncfusion.Windows.Forms.Grid.Grouping.GridRecordRow;
rec.GetData();

But how to enable row dragging?
And how to access the record / GetData() function after Dropping on the other (non Syncfusion) object?

BR
Christoph

3 Replies

AR Arulpriya Ramalingam Syncfusion Team February 2, 2018 12:11 PM UTC

Hi Christoph,   
   
Thanks for contacting Syncfusion support.   
   
In order to drag and drop the rows from GridGroupingControl to another control, the TableControlMouseDownDragDrop and DragEnter event can be customized. Already we have provided a KB to achieve this scenario. Please make use of the below KB link,   
   
   
Please let us know, if you have any other queries.   
   
Regards,   
Arulpriya  



CG Christoph Gasser February 9, 2018 08:17 AM UTC

That was exactly what I needd. Thank you!


AR Arulpriya Ramalingam Syncfusion Team February 9, 2018 07:12 PM UTC

Hi Christoph, 
 
Thanks for your update. 
 
We are glad to hear that the provided solution meets your requirement and resolved the use case. 
 
Please let us know, if you have any other queries. 
 
Regards, 
Arulpriya 


Loader.
Up arrow icon