Hi, I am using UltraWebGrid Version 8.2.20082.1000 on an ASP.NET 3.5 page with UpdatePanel. Grid is set to use LoadOnDemand=Xml and I have implemented the InitializeDataSource event in which the grid is DataBind.
I have a button on the page which fires a server-side event. Steps in codebehind event:
1. Create a new temporary UltraWebGrid (will be used to export grid data)
2. Copy selected rows to temp grid
3. Delete selected rows from the database
4. Delete selected rows from the DisplayLayout
5. Export the temp grid
The rows get deleted properly from the database. The selected rows are exported fine and the user gets a prompt to open/save the exported file. The problem is that the grid on the client-side does not get refreshed after the export. The rows that I deleted are still visible in the grid until the next postback. I tried to call DataBind on the grid before and after the export but it did not help.
Thanks!
I have read your article. It's quite good. There is a free component can do it also. It's quite fast and stable. I have used it for a long time, you can try it. More information:http://www.e-iceblue.com/Introduce/free-dataexport-component.html