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

CellDoubleClick Problem

1 Answer 97 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Zoomer
Top achievements
Rank 1
Zoomer asked on 26 Aug 2009, 02:33 PM
I seem to have a small problem with the CellDoubleClick event with the GridView.  It seems that when I doubleclick anywhere in the header for each of the rows it processes the event.   How can a prevent this from happening?  Can the header for the GridView be disabled so that when a user doubleclicks any header it won't fire the event? 

Thanks


1 Answer, 1 is accepted

Sort by
0
Victor
Telerik team
answered on 31 Aug 2009, 12:54 PM
Hi Zoomer,

Thank you for the question.

I am afraid that you cannot stop the event from firing. You can however include a check at the beginning of your handler which makes sure that nothing will happen in case the column index in the arguments is -1.
For example:
void radGridView1_CellDoubleClick(object sender, GridViewCellEventArgs e) 
    if (e.ColumnIndex != -1) 
    { 
        return
    } 
 
    // Do work from here on. 
Write again if you have other questions.

Greetings,
Victor
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
GridView
Asked by
Zoomer
Top achievements
Rank 1
Answers by
Victor
Telerik team
Share this question
or