开发者

LINQDATASOURCE do not commit to database straight away

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜