Getting cell value grdiview ASP.net

Hello!
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
        Next

Open in new window

clooakAsked:
Who is Participating?
 
clooakConnect With a Mentor Author Commented:
Since noone seems to have payed attention i will raise the points

0
 
daveamourConnect With a Mentor Commented:
This may help and is a great article!
http://weblogs.asp.net/pleloup/archive/2003/12/09/42303.aspx
 
0
 
clooakAuthor Commented:
Still bit confussing anyone happend to have a complete solution of this? Cus I guess this is a rather easy task
Regards
Clooak
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.