Andreas asked 2016-10-12 15:11:50 UTC
Hi,
Recently I was looking for the Location of a clicked DGV-Cell on the display.
The object cell seems to have a Size property, but obviously no Location.
With WindowsForms you can find the Location if you extract it e.g. with
Rectangle rec = DisplayedDGV.GetCellDisplayRectangle(1, e.RowIndex, true);
Point cellLocation = new Point(rec.Location);
Unfortunately, the Wisej DGVCell seems neither to have a Method similar to GetCellDisplayRectangle(), nor the DisplayRectangle property like the DGV itself.
Could you please suggest a way to find out the location of a clicked cell? [(Left;Top) or (X;Y)]
Thanks a lot,
Andreas
Andreas asked 2016-10-12 15:11:50 UTC
Hi,
Recently I was looking for the Location of a clicked DGV-Cell on the display.
The object cell seems to have a Size property, but obviously no Location.
With WindowsForms you can find the Location if you extract it e.g. with
Unfortunately, the Wisej DGVCell seems neither to have a Method similar to GetCellDisplayRectangle(), nor the DisplayRectangle property like the DGV itself.
Could you please suggest a way to find out the location of a clicked cell? [(Left;Top) or (X;Y)]
Thanks a lot,
Andreas