【发布时间】:2015-10-23 18:27:53
【问题描述】:
我正在尝试根据 DataGridView 上的多个选定单元格获取行索引。如何在 VB.NET 中做到这一点?
这就是我所拥有的:
If e.RowIndex >= 0 Then
Dim row As DataGridViewRow
row = Me.DataGridView1.Rows(e.RowIndex)
sno.Text = row.Cells("F2").Value.ToString
sname.Text = row.Cells("F3").Value.ToString
final.Text = row.Cells("F16").Value.ToString
End If
【问题讨论】:
标签: vb.net datagridview