从文本框中添加datagridview中的值
问题描述:
如何在VB 2008中将值从文本框传递到datagridview ????
How to pass values from textbox to datagridview in VB 2008????
答
DataGridview1.Rows(RowNo).Cells(ColNo).Value = Textbox1.Text
快乐编码!
:)
Happy Coding!
:)
你可以用这种方式将值从文本框传递到数据网格
you can use this way to pass value from text box to data grid
DataGridView1.Item(0, 0).Value = TextBox1.Text
item属性应该首先定义两个参数(列索引)和(行索引)
小心索引应在
the item property should define tow parameter first one the (column index) and (row index)
be careful the indexs should be in the range