Thanks Sancler, it seems to work quite well.
One niggle I have is after a row has been selected and moved from dgvA, if I want to select another row, I have to click the dgvA twice before it selects the row. I've never noticed this behaviour before.
I've tried putting dgvA.Focus() in the dgvA_MouseEnter event but it doesn't help.
Any ideas?
Main Topics
Browse All Topics





by: SanclerPosted on 2007-12-17 at 15:52:51ID: 20488974
The code below is for a VB.NET 2005 Form containing two datagridviews - dgvA and dgvB. It was developed for testing a specific scenario: answering a question on here which I cannot now find. So it has some details that may not be relevant to your case. But it illustrates (with dummy data which the code creates) the basic principles of dragging and dropping between two bound DataGridViews.
Roger
Select allOpen in new window