通过ado.net for windows应用程序中的datagridview插入值 [英] Insert values through datagridview in ado.net for windows application
本文介绍了通过ado.net for windows应用程序中的datagridview插入值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我在Windows应用程序中有一个DataGridView,我想在连接模式下在ADO.NET环境中将记录插入数据库。虽然,我可以通过按特定表格中的列数随机传递值到文本框的数量来实现。但我希望通过数据网格视图的行单元格传递值。如何实现这一目标。
问候,
Ravindra
Hi All,
I have one DataGridView in windows application, and I want to insert record into database in ADO.NET environment in Connected Mode. Although, I can do it through passing values randomly through number of text-box as per number of columns in the particular table. But I want to do so with passing values through data-grid-view's cells of row. How to achieve that.
Regards,
Ravindra
推荐答案
这些应该可以帮到你 -
自动保存DataGridView行SQL Server数据库 [ ^ ]
DataGridView中的数据库表更新,无需编写代码 [ ^ ]
These should help you -
Auto Saving DataGridView Rows to a SQL Server Database[^]
Database Table Update in a DataGridView without Writing Code[^]
这篇关于通过ado.net for windows应用程序中的datagridview插入值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文