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

Rowactivated event by pressing enter key does not give row

3 Answers 144 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Wolgagn
Top achievements
Rank 1
Wolgagn asked on 10 Feb 2011, 06:39 PM
Hello, I have the following problem:
When you double click a row or press enter, the RowActivated event fires and gives you a RowEventArgs.
However, in the case of the enter key, the RowEventArgs has Row=null.
How can I find out which row was selected?

Thanks.

3 Answers, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 11 Feb 2011, 09:26 AM
Hello Wolgagn,

I have tried to reproduce the issue you specified, but I was not able to. No matter if the RowActivated is fired by double-clicking on the row or by pressing the Enter key, the value of the e.Row is returned correctly. Consequently, in order to provided you with an appropriate solution, I would need a bit more details about your application. Do you handle in a way the KeyDonw or KeyUp events for example ?
 

Regards,
Maya
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
0
Brian Sayatovic
Top achievements
Rank 1
answered on 01 Aug 2011, 05:51 PM
I think I'm experiencing this same issue.  I'm going to dig in deeper and verify, but I have a RowActivated handler that works fine on double-click but blows up with a null reference when I press ENTER.
0
Maya
Telerik team
answered on 02 Aug 2011, 09:43 AM
Hello Brian,

I have retested the case, but still the RowActivated is fired on pressing "Enter". I am attaching the project I used for reproducing the scenario. Let me know if you are able to get the same behavior on it.  

Kind regards,
Maya
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

Tags
GridView
Asked by
Wolgagn
Top achievements
Rank 1
Answers by
Maya
Telerik team
Brian Sayatovic
Top achievements
Rank 1
Share this question
or