All articles(网络文学目录) All Pictures(图片目录) All Softwares(软件目录)

 
GridView中添加CheckBox并返回选中行_[Asp.Net教程]

Writer: 归海一刀 Article type: Programming skills(编程技巧) Time: 2014/1/30 1:27:53 Browse times: 296 Comment times: 0

GridView中添加CheckBox并返回选中行_[Asp.Net教程]


Head photo

Go homepage
Upload pictures
Write articles

GridView中添加CheckBox并返回选中行_[Asp.Net教程] 一:添加CheckBox






















二:查看哪一行的CheckBox被选中
foreach(GridViewRow row in this.StudentGridView.Rows)
{
Control ctrl = row.FindControl("CheckBox");
if ((ctrl as CheckBox).Checked)
{
TableCellCollection cell = row.Cells;
string studentCode = cell[1].Text;
}
}




There are 0 records,
Comment:
Must be registered users to comment(必须是注册用户才能发表评论)

Disclaimer Privacy Policy About us Site Map
Copyright ©2011-
uuhomepage.com, Inc. All rights reserved.