How to retrieve the value of a cell from DataGridView control in VB 2005

Posted on 2006-04-17
Last Modified: 2012-05-05
Hello there,

I am using VB 2005 Std. Ed.
I have a bound DaraGridView control.
The user select the row and click a "SELECT" button.
I want to retrieve the value of (let's say) the second column of the currently selected row.
How do I do that?

Thanks for your time.
Question by:JOSHUABT
    LVL 6

    Accepted Solution


      DataGridView.Item(Col, Row).Value

    Author Comment

    Thanks hatem72

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    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…
    Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    760 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

    7 Experts available now in Live!

    Get 1:1 Help Now