Hi,
in CreateChildControls i add the sort expressions to the grid. Because the unique name of a column could change (because the current datasource was removed from the cache because of a timeout), I clear the SortExpressions and add the new ones. But in the DataBound event, only the old sort expressions are set but not my new ones. I think they are set because of the viewstate.
How can I prevent that the Grid overrides my new SortExpressions with them from the viewstate?
Thanks!
in CreateChildControls i add the sort expressions to the grid. Because the unique name of a column could change (because the current datasource was removed from the cache because of a timeout), I clear the SortExpressions and add the new ones. But in the DataBound event, only the old sort expressions are set but not my new ones. I think they are set because of the viewstate.
How can I prevent that the Grid overrides my new SortExpressions with them from the viewstate?
Thanks!