We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Please help with CELL drag N drop to another CELL within same ggc.

Thread ID:





49716 Sep 25,2006 02:15 PM UTC Mar 27,2007 12:38 PM UTC WinForms 3
Tags: Grouping
Asked On September 25, 2006 02:15 PM UTC

All the examples that I have seen in this forum only show ROW drag and drop. I want to drag a value from one CELL to another CELL.

is it possible to do CELL drag and drop to another CELL with the target CELL highlighted?

Please provide an example!

Administrator [Syncfusion]
Replied On September 26, 2006 11:25 AM UTC

Hi James,

The grouping grid currently has no support for the CELL drag and drop functionality. The work around to handle the TableControlMouseDown event and call the DoDrag method to enable the drag and drop functionality in a cell. The attached sample implements the cell drag and drop functionality and also highlights the cell when the mouse move over it.

Sample : http://www.syncfusion.com/Support/user/uploads/CellDragDrop_172dfc82.zip

Let us know if this serves your need.


Replied On September 26, 2006 05:02 PM UTC

I can work with this.

However, I noticed that clicking on any cell triggers the DragDrog event.

Is there a way to prevent this and only allow drag for true dragNdrop and not when the cell is click.

Also, hwo can I determine the source''s record, the source column index, and source row index.

Administrator [Syncfusion]
Replied On March 27, 2007 12:38 PM UTC

To avoid the DragDrop on the click, you need to postpone the drag operation until you have moved a little distance away from the mousedown point. You can use TabelControlCurrentCellMoveMove to handle thie requirement. Here is the sample modified to do this.


To get the record, you can use the style object (which is being obtained in the current code)

GridTableCellStyleInfo style = tableControl.PointToTableCellStyle(pt);
if(style.TableCellIdentity.DisplayElement != null)
Record rec = style.TableCellIdentity.DisplayElement.GetRecord();
if(rec != null)
object someFieldValue = rec.GetValue("SomeField");


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon