How get RadGridView from event CellDoubleClick?

4 posts, 0 answers
  1. Anton
    Anton avatar
    2 posts
    Member since:
    Dec 2015

    Posted 10 Dec 2015 Link to this post

    Hello!

    I have some radgridview component on my application (WinForms). How get object RadGridView by sender in event CellDoubleClick? I can get GridDataCellElement using sender but i don't know what's next. Please help me. Thank's

  2. Thomas
    Thomas avatar
    5 posts
    Member since:
    Jun 2011

    Posted 11 Dec 2015 in reply to Anton Link to this post

    Hi Anton,

    what's about this one:

    private void gridView_CellDoubleClick(object sender, GridViewCellEventArgs e)
    {
        GridDataCellElement gridDataCellElement = sender as GridDataCellElement;

        if (gridDataCellElement != null)
        {
            RadGridView gridView = gridDataCellElement.GridControl;
        }
    }

    Regards,

    Thomas

  3. UI for WinForms is Visual Studio 2017 Ready
  4. Dimitar
    Admin
    Dimitar avatar
    1404 posts

    Posted 11 Dec 2015 Link to this post

    Hi Anton,

    Thomas has given you the correct approach for this case. Do not hesitate to contact us if you have other questions.
     
    Regards,
    Dimitar
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  5. Anton
    Anton avatar
    2 posts
    Member since:
    Dec 2015

    Posted 14 Dec 2015 Link to this post

    Thank, you help me in solving this problem!
Back to Top