' 'get value of current row ' Private Sub loadQByID_Grid() Dim ds As New DataSet() Dim dr As DataGridViewRow = gv.CurrentRow Dim str As Integer = Convert.ToInt16(dr.Cells(0).Value.ToString()) Try ds = getQuestionByID(str) txtContent.Text = ds.Tables(0).Rows(0).Item(1) Catch ex As Exception Dim strError As String = "Error : " + ex.Message() End Try End Sub