I am displaying the data in datagrid and the data is accessing from the database.
and i am editing the data in datagrid and updating the data.
its updating the data in databse but the datagrid is not loading with updated data.
its showing previous data only.
Can any one help me for refreshing the data and showing the updated data.
If you want to achieve UI <--> database synchronization, you have to go for data push technic where you will get updated data on front.
can you explain your scenarios more clearly means if you want to fetch updated data you have to send fresh request else go for DATA PUSH..
Try calling the refresh method of the DataGrid dataProvider.. ;-)
simple quick solution would be to reassign the dataprovider for your datagrid after updating the database.
so initially you set the dataprovider:
datagrid.dataProvider = yourData;
Just call that again after you have updated your information.