locked
Conceptual Dataset / objectdatasource question RRS feed

  • Question

  • User1287536547 posted

    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!

    Friday, July 15, 2011 1:24 AM

Answers

  • User3866881 posted

    Hello:)

    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.

    Thx

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Sunday, July 17, 2011 9:50 PM