Answer the question
In order to leave comments, you need to log in
Why does enum type always end up with None?
var h = dgvShedule.HitTest(e.X, e.Y);
int idx = (h.Type == DataGridViewHitTestType.Cell) ? h.RowIndex : dgvShedule.RowCount - 1;
Answer the question
In order to leave comments, you need to log in
you need to check in which coordinates the coordinates are given, screen coordinates or client coordinates
Point.PointToClient(Point)
Point.PointToScreen(Point)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question