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
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>>
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.
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 >>