DataGridView动态添加值并在数据库中更新它 [英] DataGridView adding values dynamically and updating it in databse
本文介绍了DataGridView动态添加值并在数据库中更新它的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要知道如何在dataGridView中动态添加值.
在我的项目中,我需要在datagridview中添加值,例如1或2行,然后将其保存在sql server数据库中.
I need to know how to add values in dataGridView dynamically.
In my project I need to add values in datagridview like 1 or 2 rows then I have to save it in my sql server database. and update too if same record was there.
推荐答案
请查看本文以查找所需内容: ^ ].它具有超出您想要的内容.
Have a look at this article for what you are looking for: Editable Nested GridView (All-in-One)[^]. It has more than what you are looking for.
这篇关于DataGridView动态添加值并在数据库中更新它的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文