简体   繁体   中英

How to perform the CRUD operations on the datatable?

I have a grid view, i want its data source to be an (offline) DataTable to make the CRUD operations [offline] then after the confirm i will store the confirmed version in my database.


  • How to make the CRUD operations(insert,update,delete) with the DataTable through LINQ if possible?Example

  • What's the best way to keep the last version among the post backs of the page?

  1. I suggest you google about using DataTable and DataSet s with DataAdapter s; ( here 'sa start) if you're only using it in a simple scenario, it's quite straightforward.

  2. You can store data in the user's Session object. (See here )

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM