I'm sure this question has been asked so many times but I could not find the answer anywhere. I have an UltraWebGrid and I do not want to go the database to retreive the data everytime there is a postback. I enable the ViewState for the grid but every postback the datasource is nothing. I have to save the data in the viewstate myself. Is anyone else having this problem?
I suspect I'm missing something here, but if you're not fetching data from the database, it seems reasonable for your datasource to be nothing.
Are you trying to DataBind the grid after NOT filling your datasource?
No I fetch the data on the initial loading of the screen. So I hit the database get the data and bind it to the grid. Then when they go to sort the grid or some other post back the data is no longer there and I have to go get the data again from the database.