When I edit the webpart user can configure data to be shown in the webpart page. But I am not able to view the recent changes in the page after clicking apply and Ok only the modified data is shown in the page. In the CreateChildControls() event only I have added the controls in it.

Thanks for your reply.I have gone through the links provided by you it help me to resolve the issue.The recent changes are reflecting in the webpart by clicking Ok only.I am having the grid in the webpart user can configure datasource(Sharepoint list) for the grid.For example the grid has 10 items with paging(2 Pageindex in the grid)when I go for the next page in the grid(postback occurs the next 5 items from the grid has been assigned as datasource) but it not get reflected in the webpart page.
–
RamalingamJan 24 '12 at 13:48

Partially the issue is resolved in the sense, I am having a grid in the webpart and it has 10 items (pagesize is 5 i.e two pages). When I go for the second page in the grid the data is assigned to the datasource,The page gets postback but it doesn't get reflect in the webpart page. Could you help me to resolve the issue ?
–
RamalingamJan 24 '12 at 14:39

1

Thanks Ryan for your reply. I have resolved the issue by adding the controls in the CreateChildControls() method and assign the value for the control in the OnPreRender() method
–
RamalingamJan 25 '12 at 10:47