
View Code 原文地址 http://edu.cnzz.cn/NewsInfo/28278.aspx#2 protected override void Render(HtmlTextWriter writer)
3 {
4 foreach (GridViewRow row in GridView1.Rows)
5 {
6 if (row.RowType == DataControlRowType.DataRow)
7 {
8 row.Attributes["onclick"] = ClientScript.GetPostBackEventReference(GridView1, "Select$" + row.RowIndex.ToString(), true);
9 row.Attributes["style"] = "cursor:pointer";
10 row.Attributes["title"] = "单击选择行";
11 }
12 }
13 base.Render(writer);
14 }
转载于:https://www.cnblogs.com/prolion/archive/2011/06/20/2085297.html
1万+



被折叠的 条评论
为什么被折叠?



