We have some editable webhierarchicaldatagrid as shown below,
We need to save the changes after editing some cells by pressing the save button shown below,
But unfortunately we are receiving (Infragistics.Web.UI.GridControls.GridFieldCollection ViewState is corrupted) error as shown below before entering the event of the save button.
What you could try is setting the EnableViewState property to false, which should prevent the exception from occurring.
In order to investigate your issue in more detail could you provide a small isolated sample that we can test and debug locally?
Additionally, I would like to share a few other forum posts that you may find helpful, since they are discussing similar issues:
Looking forward to hearing from you.
Regards, Ivan Kitanov
Can you please let me know how and where can I set the EnableViewState to false?
You can do this in the markup, inside the WebHierarchicalDataGrid tag or set it in code behind with the following code:
webHierarchicaDatalGrid1.EnableViewState = false;