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.
Unfortunately, activation email could not send to your email. Please try again.

DragOver in gcc

Thread ID:

Created:

Updated:

Platform:

Replies:

37958 Dec 2,2005 12:28 PM Dec 2,2005 12:59 PM Windows Forms 1
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On December 2, 2005 12:28 PM

Hi I want to drag and drop data between childTables of the same level when i drag&Drop from a row to row in the same childTable , it works, but when i want to dragOver a row in another childTable of the same level, it does not work in my grid_DragOver Handler i have : GridTableControl gtc = grid.GetTableControl("ChildTable1"); if (gtc.PointToRowCol(pt, out row, out col)) { } this last condition returns always false when i dragOver row in another childTable which is in the same level could u please help me Thanks

Administrator [Syncfusion]
Replied On December 2, 2005 12:59 PM

I am not sure exactly what you need, but here is another snippet that shows how to get at the underlying record from the datasource under an arbitrary point.
Point pt = this.gridGroupingControl1.TableControl.PointToClient(Control.MousePosition);
Element el = this.gridGroupingControl1.TableControl.PointToNestedDisplayElement(pt);
if(el is GridRecordRow)
{
     GridRecord rec = el.ParentRecord as GridRecord;
     if(rec != null)
     {
          DataRowView drv = rec.GetData() as DataRowView;
          Console.WriteLine("{0} {1} {2}", drv[0], drv[1], drv[2]);
     }
}


CONFIRMATION

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.

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.

;