//获取当前行
GridViewRow gvr = (GridViewRow)((Control)e.CommandSource).Parent.Parent;
//获取文本框的值
TextBox tbox_memo =(TextBox)gvr.Cells[1].FindControl("tbox_Memoo");
//获取其他控件值
。。。。。
本文介绍如何在ASP.NET中使用GridView控件进行数据操作,包括如何获取当前行、读取文本框值及其它控件值。这些技巧对于理解和操作ASP.NET网页中的数据展示非常关键。
//获取当前行
GridViewRow gvr = (GridViewRow)((Control)e.CommandSource).Parent.Parent;
//获取文本框的值
TextBox tbox_memo =(TextBox)gvr.Cells[1].FindControl("tbox_Memoo");
//获取其他控件值
。。。。。
转载于:https://www.cnblogs.com/mushaobai/p/3266148.html

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