Other cells in active grid row do not update

4 posts, 0 answers
  1. ColinBlakey
    ColinBlakey avatar
    21 posts
    Member since:
    Aug 2006

    Posted 12 Apr 2013 Link to this post

    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

  2. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 17 Apr 2013 Link to this post

    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.

  3. ColinBlakey
    ColinBlakey avatar
    21 posts
    Member since:
    Aug 2006

    Posted 17 Apr 2013 Link to this post

    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
  4. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 17 Apr 2013 Link to this post

    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.

Back to Top