Dynamically Generated RadGrid

2 posts, 0 answers
  1. Jason
    Jason avatar
    1 posts
    Member since:
    Mar 2016

    Posted 18 Oct 2016 Link to this post

    Dynamically Generated Radgrid with Form Template loses Dynamic Binding on Edit Click.


    I have a RadGrid that gets Created and Bound Dynamically. But when I click edit it rebinds the grid then when I hit update it rebinds the grid and loses the datasource and so It has to call NeedDataSource again which blows away the new values before it gets to the update command.

  2. Jerald
    Jerald avatar
    32 posts
    Member since:
    Jan 2016

    Posted 18 Oct 2016 in reply to Jason Link to this post

    If you are using a SqlDataSource control, have you checked the UpdateCommand to make sure that the Update statement was generated correctly?  I've had issues in the past with the SqlDataSource generating an UpdateCommand that rebinds all fields to the original values.  
Back to Top