I am trying to get the rows from the gridviewrow and display it in the detail view in next page. I am using Asp.net with VB
Simply iterate the collection and check the status. You can then put the selected rows into a session object or something else to pass on to the next page.
For Each Row As GridViewRow In MyGrid.Rows
Dim SelectCheck As CheckBox = DirectCast(Row.FindControl("chkSelectForDetail"), CheckBox)
If SelectCheck.Checked
' Add your logic here to save the data or passing on to the detail page.
End If
Next
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.