从文本框中添加datagridview中的值 [英] add value in datagridview from textbox

查看:89
本文介绍了从文本框中添加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


这篇关于从文本框中添加datagridview中的值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆