• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 206
  • Last Modified:

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
0
prowebinteractive
Asked:
prowebinteractive
  • 2
1 Solution
 
Kinger247Commented:
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

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now