在VB6.0中怎么将datagrid中选中行的一个数据送到text中

datagrid 是microsoft datagrid control中的!
难者不会,吧、会者不难啊!!!

第1个回答  2008-12-26
给你写个VB.NET的,你自己去改下,应该是差不多的。
dim i as integer
i=DataGridView1.CurrentRow.Index
dim Str as String
For j as integer=0 to DataGirdView1.Rows(i).Cells.Count-1
Str=Str & DataGridView1.Rows(i).Cells(j).Value
Next
TextBox1.Text=Str

这样应该就可以了.vb6.0中的DataGrid与Vb.net中的DataGridView是差不多的
第2个回答  2008-12-25
呵呵,想当初我考计算机中级的时候考的就是VB,不过现在什么也不记得了。本回答被提问者采纳
相似回答