在DataGridView中添加行 [英] Adding row in a DataGridView
本文介绍了在DataGridView中添加行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在Window应用程序中工作,我有一个文本框和一个 DataGridView
控件。
当我输入一个和值时文本框中的金额应该作为一行添加到 DataGridView
。
解决方案
看看这里:扩展Windows窗体DataGridView控件的最佳实践 [ ^ ]并仔细阅读使用共享行部分;)
I am working in a Window application and I have one text box and a DataGridView
control.
When I input a sum value in the text box that amount should added as a row in the DataGridView
.
解决方案
Have a look here: Best Practices for Scaling the Windows Forms DataGridView Control[^] and carefully read Using Shared Rows section ;)
这篇关于在DataGridView中添加行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文