开发者

LINQDATASOURCE do not commit to database straight away

开发者 https://www.devze.com 2023-01-23 13:58 出处:网络
Hi I\'m using a LinqDataSource with a RadGrid. When I Add a new Grid item and click insert the 开发者_StackOverflow中文版values are immediately saved to the database.

Hi I'm using a LinqDataSource with a RadGrid. When I Add a new Grid item and click insert the 开发者_StackOverflow中文版values are immediately saved to the database.

Is there a way where they can be actually not put in the database until I give the command?


You should not use DataSource control for that purpose. You can write your own in-memory datasource using DataTable or DataSet, then you can implement a command which you can execute on a button click to save in-memory data to actual database.

0

精彩评论

暂无评论...
验证码 换一张
取 消