在 DataGridView 上指向特定一行

 

   在 DataGridView 上指向特定一行
 
   Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
      DataGridView1.CurrentCell = DataGridView1.Rows(CInt(TextBox1.Text.Trim) – 1).Cells(0)
   End Sub