The webdatagrid does alot of postbacks? If I have data in the grid that is not saved to a database, does anyone have any suggestions how I can maintain the information through a post back that does not involve a db save? I am thinking session is the only way of doing that. But I was wondering there where other ways.
Thanks
I am adding, editing and removing records in the grid. I have enableDataviewState turned on. If I bind the table to a list the datasource is removed on a post back. Thats why I started to look at saving the information in session becuase I do not know how to do it other wise with out having it saved in a db. Is there a stemp that I am missing with the EnableDataViewSate? Is there something I might be missing that needs to be turned on or off? I am handling the add, delete and update. I am not using AUTOCRUD.
Apalcer
Hi apalcer,
What exactly are you doing to the grid that's changing? If you want the data to stay the same, you could turn on EnableDataViewState. Then we'll save the records in the view state and save off adds, deletes, and edits. Or put your datasource into a DataTable in the Session could work.
regards,David Young