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

Other cells in active grid row do not update

3 Answers 35 Views
GridView
This is a migrated thread and some comments may be shown as answers.
ColinBlakey
Top achievements
Rank 2
ColinBlakey asked on 12 Apr 2013, 01:45 PM
I'm working with a gridview where when I update one cell, it updates other cells both in the same row and other rows. The issue I have is that the cells in other rows correctly update and show the new contents, but any cell on the 'active row' i.e. containing the cell that was edited and presuming that the caret moved to the next cell in the row does not update i.e. if I have cells A,B,C and D on one row and I edit C then when I finished editing C, cell A is updated but it's changes do not show and the control moves to editing cell D. As soon as I move off that row then the cell's correctly shown their new contents. How can I get all of the updated cells to refresh?

Thanks
Colin

3 Answers, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 17 Apr 2013, 01:03 PM
Hello Colin,

You say that "when I finished editing C, cell A is updated but it's changes do not show" ... until you move off that row. Do your properties (A,B,C and D) implement INotifyPropertyChanged? What is the result if you use the MS DataGrid instead?

Greetings,
Didie
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
ColinBlakey
Top achievements
Rank 2
answered on 17 Apr 2013, 01:40 PM
Didie,

The grid is bound to a DataTable, specifically the DataTable.DataView which implements INotifyChanged. All changes are made to the underlying data which correctly updates excepting for any cells on the active row.

I have actually solved this issue by adding the following to the BeginningEdit handler.
RadGridCommands.CommitEdit.Execute(null);

Whether this is the correct way to do this I'm not sure but it does work.

Thanks

Colin
0
Dimitrina
Telerik team
answered on 17 Apr 2013, 03:24 PM
Hello Colin,

I am glad to hear you have resolved the issue. Thank you for sharing your solution with the community. 

All the best,
Didie
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
GridView
Asked by
ColinBlakey
Top achievements
Rank 2
Answers by
Dimitrina
Telerik team
ColinBlakey
Top achievements
Rank 2
Share this question
or