Solved

get datagridview field value on mouse click

Posted on 2006-12-01
3
200 Views
Last Modified: 2012-08-13
trying to get thevalue of the datagrid view and pass the value to a another form for a query
0
Comment
Question by:prowebinteractive
  • 2
3 Comments
 
LVL 10

Accepted Solution

by:
Kinger247 earned 500 total points
ID: 18056469
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
 

Author Comment

by:prowebinteractive
ID: 18068607
need dbl click  is this possible
0
 
LVL 10

Expert Comment

by:Kinger247
ID: 18068666
Will you can still use (as is). Just don't use it untill you receive the double click event.
0

Featured Post

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question