Last post Jul 17, 2011 09:50 PM by Decker Dong - MSFT
Jul 15, 2011 01:24 AM|remojr76|LINK
What I have is a detailsview that when I click a button it adds the item to a gridview. I use a sqlDatasource for the SELECT for the detailsview. I use another sqlDatasource for the INSERT to a table for the gridview. I use a dataset and an ObjectDatasource
for the SELECT for the gridview.
The detailsviews are items and the gridview is a "compiled" shopping list. Will all the shopping lists become co-mingled? Do I need to keep the Dataset from updating the database so they don't get co-mingled? I do not want user 1 to have items from user
2 in their shopping list. Is there a way to TRUNCATE the Dataset? Should I use a SQL Datasource for the gridview and when the user ends their session, TRUNCATE the database?
I am a newbie so I may have my concepts all missed up.
Thanks in advance!
Jul 17, 2011 09:50 PM|Decker Dong - MSFT|LINK
It seems that you want to let buyers edit/update/Insert in the DetailsView, and make a sychronized update in the GridView...
I want to say that please do not forget to Call GridView.DataBind() in the Item_Inserted/Deleted/Updated in the DetailsView.