Skip to content

DGV Cell Location #315

Description

@itg-assistant

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    GeneralQuestions, how-tos and everything else.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions