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

Dynamically Generated RadGrid

1 Answer 83 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jason
Top achievements
Rank 1
Jason asked on 18 Oct 2016, 09:16 AM

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.

1 Answer, 1 is accepted

Sort by
0
Jerald
Top achievements
Rank 1
answered on 18 Oct 2016, 04:25 PM
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.  
Tags
Grid
Asked by
Jason
Top achievements
Rank 1
Answers by
Jerald
Top achievements
Rank 1
Share this question
or