例如:点击红点部分就能选中整行。然后将行中数据放入其他Text.Box中。If DataGridView1.SelectedRows.Count = 1 Then
DataGridView1.SelectionMode = DataGridViewSelectionMode.FullRowSelect banji.Text = DataGridView1.CurrentRow.Cells(1).Value.ToString
xingming.Text = DataGridView1.CurrentRow.Cells(2).Value.ToString
shouji.Text = DataGridView1.CurrentRow.Cells(3).Value.ToString
End If这个应该如何改正?DataGridView控件选中行VB
DataGridView1.SelectionMode = DataGridViewSelectionMode.FullRowSelect banji.Text = DataGridView1.CurrentRow.Cells(1).Value.ToString
xingming.Text = DataGridView1.CurrentRow.Cells(2).Value.ToString
shouji.Text = DataGridView1.CurrentRow.Cells(3).Value.ToString
End If这个应该如何改正?DataGridView控件选中行VB
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货