locked
Update Datatable without update database in VB.net RRS feed

  • Question

  • HI

    I always get solutions for my questions from the forum , thanks for your help.

    and my question, is it possible to update populated datatable in dataset without updating Database?

    actually i have a DataGridView and i try to fill new rows with autocompete mode for each DGV cell, relate and depend to previous DGV filled rows  and previous data in my datatable in VB.Net.

    Thank you again.

    Monday, August 20, 2012 4:34 PM

Answers

  • Hi R.Salehi,

    Thanks for you post.

    >>is it possible to update populated datatable in dataset without updating Database?

    Yes. If you don’t use some method to update the database, the data in database will not be influenced. As for you issue, you can simply edit the datatable, and rebind the datagridview with the new datatable.

    Hope this helps.


    Mark Liu-lxf [MSFT]
    MSDN Community Support | Feedback to us

    • Marked as answer by R. Salehi Tuesday, August 21, 2012 9:14 PM
    Tuesday, August 21, 2012 7:25 AM

All replies

  • Hi R.Salehi,

    Thanks for you post.

    >>is it possible to update populated datatable in dataset without updating Database?

    Yes. If you don’t use some method to update the database, the data in database will not be influenced. As for you issue, you can simply edit the datatable, and rebind the datagridview with the new datatable.

    Hope this helps.


    Mark Liu-lxf [MSFT]
    MSDN Community Support | Feedback to us

    • Marked as answer by R. Salehi Tuesday, August 21, 2012 9:14 PM
    Tuesday, August 21, 2012 7:25 AM
  • thanks Mark

     Know i think my question was very ridiculous! ;)

    Regards

    Tuesday, August 21, 2012 9:19 PM