如何使用Datagrid将行插入到Sql Server表中 [英] How do I Insert rows into a Sql Server table, using Datagrid
本文介绍了如何使用Datagrid将行插入到Sql Server表中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我是Visual Basic 2013的新手.我需要在表中创建数据.首选的用户小部件是Datagrid.
I am new to Visual Basic 2013. I have a need to create data in a table. The preferred user widget is the Datagrid.
我可以获取datagrid来从与其关联的表中查询数据.但是,我正在努力将在数据网格中输入的数据存储在表中.
I can get the datagrid to query data from the table that it is associated to. However, I am struggling to store data entered in the datagrid, in my table.
能否请您分享代码段以实现这一目标?
Can you please share code snippets to achieve this?
谢谢
推荐答案
你好,
在下面的MSDN文章
> https://code.msdn.microsoft.com/Adding-new-records-into -bff5eaaf
这篇关于如何使用Datagrid将行插入到Sql Server表中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文