2014年7月13日 星期日

[RESOLVED] Grid View does not refresh even after Calling Databind


I have a page with a user control (UserCtrl1).


I have a grid view (grid1) and another User control (UserCtrl2) with in user control (UserCtrl1).


when i click save button in user control (UserCtrl2) i am calling a event which calls a function in user control (UserCtrl1).


In that function, i have called Grid1.Databind


still the gridview (Grid1) is not refresh/updated with new records


Darani



try this...


Grid1.DataSource = null;


Grid1.DataBind();


hope this helps...



Make sure GridView datasource(myDataTable) has the updated data and reassign it


Grid1.DataSource = myDataTable;


Grid1.DataBind();




i have found another solution to update the UPDATE PANEL. it Worked.


thank u for reply


Darani



HI,


WE are happy that your issue has been resolved. And thanks for sharing solution with us.


沒有留言:

張貼留言