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

cell editing and CurrentItem focus

1 Answer 29 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Dodd
Top achievements
Rank 1
Dodd asked on 19 Dec 2013, 02:43 AM
Hi, I'm using editable GridView cells. I see that when I multi select several GridView rows from the top to bottom direction, the CurrentItem foucs moves to the bottommost cell and when I directly start to type something, the bottommost cell is edited. What I want to do is when I select cells from the top to bottom direction and start editing, the topmost cell gets the CurrentItem focus and starts to be edited. I tried to solve this by setting the CurrentItem property, but it was readonly. Is there any way I can acheive this? (I have to multi select cells first for some reasons, not only just editing cells!)

1 Answer, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 23 Dec 2013, 12:32 PM
Hi,

As I understand you have multi-selection of rows. First you click on one row you select (lets say it is the first row). Then you select  more rows.

Then you would like to have the clicked cell on the first selected row to be edited when you start editing RadGridView, am I right?

If this is the case, then you could save information about the first cell you have clicked on and set it to be RadGridView.CurrentCellInfo when you want to start editing. For the purpose, you can subscribe for RadGridView.KeyDown or RadGridView.PreviewKeyDown events and set the CurrentCellInfo there.

Let me know how this suggestion works for you.

Regards,
Didie
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
GridView
Asked by
Dodd
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Share this question
or