Drag and drop
-
Hi, can someone help me out ? I have a line of code in the cellClick of a datagridview.
System.Diagnostics.Trace.WriteLine("Cell Click before"); _this.DoDragDrop(DgLevels.Rows[e.RowIndex].Cells[DbCnst.Lev_ID].Value.ToString(), DragDropEffects.Move)_ System.Diagnostics.Trace.WriteLine("Cell Click after");
But when clicking one time on the cell, "Click before" appears in the output window, but it takes almost a second before "click after" appears. it also doesn't work like it should be. seems like it switches the drag and drop. click (drag) click second time and nothing happens, even when event is fired. looks like there is a timeout for the drag and drop. do i need to cancel it ? thx Kurt -
Hi, can someone help me out ? I have a line of code in the cellClick of a datagridview.
System.Diagnostics.Trace.WriteLine("Cell Click before"); _this.DoDragDrop(DgLevels.Rows[e.RowIndex].Cells[DbCnst.Lev_ID].Value.ToString(), DragDropEffects.Move)_ System.Diagnostics.Trace.WriteLine("Cell Click after");
But when clicking one time on the cell, "Click before" appears in the output window, but it takes almost a second before "click after" appears. it also doesn't work like it should be. seems like it switches the drag and drop. click (drag) click second time and nothing happens, even when event is fired. looks like there is a timeout for the drag and drop. do i need to cancel it ? thx KurtOKay, my fault. :-O I should have used the cellmousedown.. So this works better. Still one problem, it doesn't show the drag icon immediatelly, only when i start moving the mouse. greetz and merry Xmas Kurt