将多行从Datagrid存储到数据库 [英] Storing multiple rows from Datagrid to database

查看:76
本文介绍了将多行从Datagrid存储到数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

如果单击保存"按钮,则数据网格中的多行应存储到数据库中.

我正在使用BLL和DAL.

在此先感谢

hi guys,

If i click the save button, the multiple rows from the datagrid should stored to the database.

I''m using BLL and DAL.

thanks in advance

推荐答案

如果您的问题是选择多个行,请参阅
If your problem is selection of multiple rows then see here[^].

Since you are using your own BLL and DAL you need to call the respective save / update database methods in those layers which will save to the database.


PLease检查以下文章:
http://www.switchonthecode.com/tutorials/csharp-tutorial-将数据绑定到数据库 [ ^ ]
PLease check the following article:
http://www.switchonthecode.com/tutorials/csharp-tutorial-binding-a-datagridview-to-a-database[^]


this[^]might also help you.


这篇关于将多行从Datagrid存储到数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆