在不使用数据库的情况下将TextBox值添加到GridView [英] Add TextBox value to GridView Without using Database
本文介绍了在不使用数据库的情况下将TextBox值添加到GridView的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
将TextBox值添加到GridView而不使用数据库
Add TextBox value to GridView Without using Database
推荐答案
dataGridView1 [0,1] .Value = textBox1.Text;
方括号之间的第一个值是列数,第二个值等于行数。
希望这会有所帮助。
dataGridView1[0, 1].Value = textBox1.Text;
The first value between the square brackets is the number of column, and the second value equals to the number of row.
Hope this helps.
这篇关于在不使用数据库的情况下将TextBox值添加到GridView的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文