Hello,
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.
Hello Hossam,
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:
https://www.infragistics.com/community/forums/f/ultimate-ui-for-asp-net-web-forms/56789/viewstate-is-corrupted
https://www.infragistics.com/community/forums/f/ultimate-ui-for-asp-net-web-forms/32275/does-webdatagrid-work-with-datasets
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;