我最后这样解决的 】
rows = DataGridView1.CurrentCellAddress.Y.ToString() ' 得到选中行的索引值
ID = CInt(DataGridView1.Rows(rows).Cells(0).Value)
Name = CStr(DataGridView1.Rows(rows).Cells(1).Value)
Desc = CStr(DataGridView1.Rows(rows).Cells(2).Value)
Group = CStr(DataGridView1.Rows(rows).Cells(3).Value)
Date = CStr(DataGridView1.Rows(rows).Cells(4).Value)
这样更简单一点 谢谢!