[英]How to select the Checked rows in GridviewRow and display it in next page in VB.net
我正在嘗試從gridviewrow獲取行並將其顯示在下一頁的詳細信息視圖中。 我在VB中使用Asp.net
只需迭代集合並檢查狀態即可。 然后,您可以將選定的行放入會話對象或其他內容以傳遞到下一頁。
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
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.