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. Image for the cookie policy date

Drag and Drop GridDataBoundGrid

Hi, I'm trying to drag from a GridDataBoundGrid and drop into another GridDataBoundGrid a certain row. I can do the drop of the row in the second GridDataBoundGrid, but I can't get the index of the GridDataBoundGrid I'm dropping the row. In fact I don't need the Drag and Drop event to copy or move the row, I just want to know the index of the second GridDataBoundGrid I'm dropping the row. Thanks a lot for you help. Jose Melo.

1 Reply

AD Administrator Syncfusion Team October 24, 2003 09:57 PM UTC

You can get the row where the mouse is at any time using code like: int row; int col; Point pt = this.grid.PointToClient(Control.MousePosition); if(this.grid.PointToRowCol(pt, out row, out col, -1) { //row and col will have the cell where the mouse is... } So, in the drop event, you can get the row using the above code.

Loader.
Up arrow icon