Solved

get datagridview field value on mouse click

Posted on 2006-12-01
3
198 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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

708 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now