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
For Each row As GridViewRow In GridView1.Rows
Dim cb As CheckBox = DirectCast(row.FindControl("CheckBox1"), CheckBox)
If cb.Checked Then