Skip to main content

HitTest

Comments

1 comment

  • Dapfor Team

    Hello,
    Below you will find a code for your example:

    public void DoubleClickHandler(object sender, EventArgs e)
    {
    Point point = grid.PointToClient(Cursor.Position);
    Header header = grid.HitTests.HeaderTest(point);
    Rectangle headerBounds = grid.HitTests.HeaderVisibleBoundsTest(point);
    if(header != null)
    {
    //Get a first row below the header
    Row row = grid.HitTests.RowTest(new Point(point.X, headerBounds.Bottom));
    if (row != null && row.Header == header && row.Parent != null)
    {
    foreach(Row child in row.Parent.Children)
    {
    }
    }
    }
    }


    Best regards,
    Dapfor

    0

Please sign in to leave a comment.

Powered by Zendesk