ASP.Net Datagrid - disable ViewState to reduce page size

ASP.Net Datagrid - disable ViewState to reduce page size

Old forum URL: forums.lhotka.net/forums/t/12117.aspx


pjshah70 posted on Thursday, August 15, 2013

Hi,

We are using CSLA Version 1.0.0.0 as per CSLA.dll
We are currently facing problems with oversized ViewState on pages that uses DataGrid and GridViews.

I need to disable ViewState on datagrid, that uses selectedindexchanges, pageindexchanged, sort command, itemdatabound and itemcreated events.

Some of these causes issues aspecially sort command, as it doesn't remember Header Text with " ^" and " v" symbols on post-back.

How can I achieve this. Please provide sample code as I am novice user for CSLA.

Thanks

Copyright (c) Marimer LLC