Drag & Drop Event

Joined
Sep 3, 2008
Messages
19
Programming Experience
1-3
I created a form with a datagrid on it along with a textbox. I wrote the code which allows the user to drag the textbox onto the datagrid and allow the user to drop the textbox into one of the cells. How can I detect the specific cell the user had dropped the textbox on so that I can use the content of the textbox to insert into the cell that had received the dropped textbox?

I tried the cellmouseenter event and it does identify the row and column corresponding to the mouse position over the cell in the datagrid. But when I drag a textbox into the cell, the cellmouseenter event doesn't work.


Thanks.
 
Back
Top