更新时间:2023-10-19 21:28:46
在提交按钮点击,你可以循环遍历GridViewRows
并找到CheckBox
控件。然后你可以确定状态。
示例 - 带CheckBox的GridView:在ASP.Net中获取选定的行 [ ^ ]
In Submit button click, you can loop through theGridViewRows
and find thatCheckBox
control. Then you can determine the state.
Example - GridView with CheckBox: Get Selected Rows in ASP.Net[^]