In Aspose.Cells.GridWeb version 20.4.3, after clearing the background image from a cell, the Page_Load event is fired with IsPostBack false. All data from ViewState is lost and the page is incorrectly reset.
In such a large page like ours this causes a huge problem.
I use the following instructions to clear the image:
GridTableItemStyle st = grid.ActiveSheet.Cells[Row, Column].Style; st.BackImageUrl = ""; st.BackImageAttributes = ""; grid.ActiveSheet.Cells[Row, Column].Style = st;
Is there another way to do this?
I reproduced the problem in a simple project: Sample Project
Here you can see that after the changes from btnClearImg_Click or grid_CustomCommand events are performed, the Page_Load event fires as if it was the first time the page opens. If the instruction to clear the image (st.BackImageUrl = “”; ) is commented this no longer happens.
I appreciate any help you could provide.