I am using the WebDataGrid with customdatabinding. This is working for me for everything that I need for paging and sorting. The sort is also done server side where I just do a Databind() on the grid and the data shows as expected.
We have some external controls that can manipulate the dataSource. (Which is just a typed List) It goes thru the CustomDatabinding on the server side and sets the datasource properly, but the client (grid) does not change. If I then sort a column, the data then changes to the new dataset. A full page refresh also shows the new dataset.
I've found other forums with the same problem that claim that Grid.Rows.Clear(); or Grid.ClearDataSource(); before the new datasource bind fixes the problem. It did not help me here.
Hello Joel,
Thank you for your question.
Since this is not a known issue for us, could you please provide a small sample that is showing the issue in order to investigate it further for you.
Looking forward for you reply.
I created a quick site to reproduce the issue, and it did not display the same behavior.
In looking at others solutions I simply wrapped the webdatagrid in an update panel, and the client immediately started recognizing the change. It seems that there was some disconnect on my site for the client to see that the bound data changed. This fixed the issue as I had it.
Thanks for the help anyway.