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

Is it possible to rebind a GridViewRow without rebinding the complete grid?

4 Answers 130 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Arpit
Top achievements
Rank 1
Arpit asked on 10 Dec 2010, 12:08 PM
Hi,

I am trying to work with RadGridView such that: when data in one (and only) editable column changes, it can change the data in other two or three columns in the same row.

Rebinding the grid in RowEditEnded event works fine, it changes the data in other columns. But the problem is that when I rebind the grid, I lose the keyboard navigation (it means that the column in the next row could not go in edit mode and also, RowEditEnded fires when I just press Tab or Tab+ Shift to move to editable column in the previous row).

My application need to provide most of the keyboard comfort to its users. So, I am looking for a way to rebind the edited row only (when the data in editable column changes and RowEditEnded fires).

Thanks,
Arpit Khandelwal

4 Answers, 1 is accepted

Sort by
0
Accepted
Yavor Georgiev
Telerik team
answered on 10 Dec 2010, 12:11 PM
Hello Arpit,

 If your data item raises a PropertyChanged event with an empty property name, all the cells in the row bound to this data item will be refreshed and you will not lose keyboard navigation.

All the best,
Yavor Georgiev
the Telerik team
Browse the videos here>> to help you get started with RadControls for WPF
0
Arpit
Top achievements
Rank 1
answered on 10 Dec 2010, 12:23 PM
Thanks a ton Yavor. It works but couldn't figure out how it does.
0
Arpit
Top achievements
Rank 1
answered on 10 Dec 2010, 12:33 PM
Could it work for 'non-empty' Property name?
0
Accepted
Yavor Georgiev
Telerik team
answered on 10 Dec 2010, 12:41 PM
Hi Arpit,

 It works only if the property name is empty or null. This is how the framework is designed.

Greetings,
Yavor Georgiev
the Telerik team
Browse the videos here>> to help you get started with RadControls for WPF
Tags
GridView
Asked by
Arpit
Top achievements
Rank 1
Answers by
Yavor Georgiev
Telerik team
Arpit
Top achievements
Rank 1
Share this question
or