2008年8月21日
摘要: http://www.cnblogs.com/Jinglecat/archive/2007/07/05/806460.html 方法一: step1: 设置你的GridView的DataKeyNames为re_id <asp:GridView ID= "GridView1 " runat= "server " DataKeyNames= "re_id " ... step2: 在Ro... 阅读全文
posted @ 2008-08-21 14:37 forever of Provence 阅读(964) 评论(0) 推荐(0) 编辑
摘要: gridview 选中行 /*功能:当选中某行时,获得应行上的“用户名称”和“工号”的两个字段的值*/ /*关键就是这里的实现喽*/ protected void GridView_user_RowCommand(object sender, GridViewCommandEventArgs e) { if (e.CommandName == "ib_sel") { string name = e.CommandArgument.ToString(); Control cmdSource = e.CommandSource as Control; GridView gridv = sender as GridView; GridViewRow row = cmdSource.NamingContainer as GridViewRow; int rowIndex = row.Row 阅读全文
posted @ 2008-08-21 14:23 forever of Provence 阅读(2790) 评论(0) 推荐(0) 编辑