get datagridview field value on mouse click

trying to get thevalue of the datagrid view and pass the value to a another form for a query
Who is Participating?
Kinger247Connect With a Mentor Commented:
You can get the value like this (in vs2005), you didn't say which version you are using .. :

    Private Sub DataGridView1_CellContentClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView1.CellContentClick
        Dim Value As String = DataGridView1.Rows(e.RowIndex).Cells(e.ColumnIndex).Value
    End Sub

prowebinteractiveAuthor Commented:
need dbl click  is this possible
Will you can still use (as is). Just don't use it untill you receive the double click event.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.