Getting cell value grdiview

Posted on 2009-02-20
Last Modified: 2013-11-11
Im having problems with retrieving data from gridview im looping through the gridview but Im not able to use Row.cells to get value or anything like that. Obviously im doing something wrong.

Im having a gridview and a checkbox in every row of the gridview, also a button to submit selected value so lets say, first your suppose to select the rows you want by checking the checkbox at desired row and then do submit them all click on a button.
The button loops through the rows and checks whether the checkbox is checked or not if checked then I want to get the value of a cell in that row.
Is it possible? I appreciate any help! Ive tried everything

Thank you!
For Each row As GridViewRow In GridView1.Rows

            Dim cb As CheckBox = DirectCast(row.FindControl("CheckBox1"), CheckBox)

            If cb.Checked Then


            End If


Open in new window

Question by:clooak
    LVL 19

    Assisted Solution

    This may help and is a great article!

    Author Comment

    Still bit confussing anyone happend to have a complete solution of this? Cus I guess this is a rather easy task

    Accepted Solution

    Since noone seems to have payed attention i will raise the points


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Threat Intelligence Starter Resources

    Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

    When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
    Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
    Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
    The goal of the tutorial is to teach the user how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.

    759 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

    8 Experts available now in Live!

    Get 1:1 Help Now