Get Row Location from index

3 posts, 0 answers
  1. Matteo
    Matteo avatar
    5 posts
    Member since:
    Jan 2015

    Posted 09 Feb 2015 Link to this post

    I have an integer value that is the index of a row (e.g. int index = 3).
    I need to get the row at index 3 and then get the Location/Position on the screen (System.Drawing.Rectangle if possible).
    Any idea?

    Thanks for the help
  2. Matteo
    Matteo avatar
    5 posts
    Member since:
    Jan 2015

    Posted 11 Feb 2015 in reply to Matteo Link to this post

    If anyone is interested...

    GridRowElement rowElement = grid.TableElement.GetRowElement(grid.Rows[row.GetIndex().GetIndex()]);
                if (rowElement != null)
                    rowBounds = rowElement.ControlBoundingRectangle;
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Hristo Merdjanov
    Hristo Merdjanov avatar
    712 posts

    Posted 11 Feb 2015 Link to this post

    Hi Matteo,

    Thank you for sharing your knowledge with our community, I confirm that this is a valid way to get a certain row location.

    Should you have further questions please do not hesitate to write back.

    Hristo Merdjanov

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

Back to Top