This is a migrated thread and some comments may be shown as answers.

How get RadGridView from event CellDoubleClick?

3 Answers 149 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Anton
Top achievements
Rank 1
Anton asked on 11 Dec 2015, 03:32 AM

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

3 Answers, 1 is accepted

Sort by
0
Thomas
Top achievements
Rank 1
answered on 11 Dec 2015, 07:38 AM

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

0
Dimitar
Telerik team
answered on 11 Dec 2015, 12:30 PM
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
0
Anton
Top achievements
Rank 1
answered on 15 Dec 2015, 02:54 AM
Thank, you help me in solving this problem!
Tags
GridView
Asked by
Anton
Top achievements
Rank 1
Answers by
Thomas
Top achievements
Rank 1
Dimitar
Telerik team
Anton
Top achievements
Rank 1
Share this question
or