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
prowebinteractiveAsked:
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

0
 
prowebinteractiveAuthor Commented:
need dbl click  is this possible
0
 
Kinger247Commented:
Will you can still use (as is). Just don't use it untill you receive the double click event.
0
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.