取得 DataGridView 上 Current Row 既 資料

 

   取得 DataGridView 上 Current Row 既 資料
 
   Sub DG1_CK(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DG1.CellClick
      Label1.Text = DG1.CurrentRow.Cells(0).Value
      Label2.Text = DG1.CurrentRow.Cells(1).Value
      Label3.Text = DG1.CurrentRow.Cells(2).Value
   End Sub