Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1965
load on demand- failed to load viewstate exception
posted

Trying to implement behaviours on the childgrid and I get the following exception:

Async request failed 

[HttpException]: Failed to load viewstate.  The control tree into which viewstate is being loaded must match the control tree that was used to save viewstate during the previous request.  For example, when adding controls dynamically, the controls added during a post-back must match the type and position of the controls added during the initial request.

 

 

WebHierarchicalDataGrid.DataSource = UnfilteredDataSet;

 

 

 

 

 

 

 

WebHierarchicalDataGrid.Rows.Clear();

WebHierarchicalDataGrid.DataBind();

Any idea why this is happening?