I am trying to implement a drag and drop operation from a listbox to a data
gridview control but I keep getting -1 for my row index when the dragdrop
function is executed. Below is my coding.
DataGridView.HitTestInfo info = dataGridView2.HitTest(e.X, e.Y);
int row = info.RowIndex;
The coordinates returned to the dragdrop function seem to be coordinates
relative to the window rather than to the datagridview control. In any case,
I get -1 for of the indices returned in the info group. Does anyone know how
to get the correct row in a dragdrop into a datagridview.
Dave