摘要: C#精髓 第四讲 GridView 72般绝技 作者:清清月儿 主页:http://blog.csdn.net/21aspnet/ 时间:2007.3.24-26 为了写本文,又搭工又搭料,累的2天2宿没睡觉,这篇文章实在是耗费我太多的心血,版权永远属于CSDN社区的清清月儿,请不要试图修改本文,破坏全文的完整性,希望您尊重我的劳动成果! 快速预览:GridView无代码分页... 阅读全文
posted @ 2007-03-27 16:18 群 阅读(313) 评论(0) 推荐(0) 编辑
摘要: for(int i=0;i<GridView1.Rows.Count;i++) { string lbl=Convert.ToString(DataBinder.Eval(e.Row.DataItem,"id")); if(lbl=="2") { e.Row.BackColor=Syste... 阅读全文
posted @ 2007-03-27 14:30 群 阅读(136) 评论(0) 推荐(0) 编辑
摘要: if (e.Row.RowType == DataControlRowType.DataRow) { e.Row.Attributes.Add("onmouseover", "c=this.style.backgroundColor;this.style.backgroundColor='#00ffee';"); e.Row.Attrib... 阅读全文
posted @ 2007-03-27 14:20 群 阅读(150) 评论(0) 推荐(0) 编辑