Answer the question
In order to leave comments, you need to log in
How can I find out the index of the string I'm pointing to when I'm dragging an object?
Can you please tell me how to find the index of the datagridview row by the position of x and y?
Answer the question
In order to leave comments, you need to log in
var h = dgvResult.HitTest(e.X, e.Y);
if (h.Type == DataGridViewHitTestType.Cell)
{ = h.RowIndex;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question