如何在嵌套的gridview中编辑 [英] how to edit in nested gridview

查看:49
本文介绍了如何在嵌套的gridview中编辑的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

protected void gvnested_RowEditing(object sender,GridViewEditEventArgs e)

{

try

{

系统。 Web.UI.WebControls.GridView gvnst =((System.Web.UI.WebControls.GridView)sender);

gvnst.EditIndex = e.NewEditIndex;



FillHatcheryGridDetails();

GVChickSales.DataBind();





}

catch(exception ex)

{

Log(ex.Message,ex.StackTrace);

ScriptManager。 RegisterClientScriptBlock(this.Page,this.GetType(),& quot; Exception Message& quot;,& quot; alert('您有例外,请咨询IT部门')& quot ;,真实);

}

}







如何编写cs代码进行编辑。

protected void gvnested_RowEditing(object sender, GridViewEditEventArgs e)
{
try
{
System.Web.UI.WebControls.GridView gvnst = ((System.Web.UI.WebControls.GridView)sender);
gvnst.EditIndex = e.NewEditIndex;

FillHatcheryGridDetails();
GVChickSales.DataBind();


}
catch (Exception ex)
{
Log(ex.Message, ex.StackTrace);
ScriptManager.RegisterClientScriptBlock(this.Page, this.GetType(), "Exception Message", "alert('You have an exception,please consult IT department')", true);
}
}



how to write cs code for editing.

推荐答案

尝试

嵌套gridview编辑 [ ^ ]

可编辑的嵌套GridView(多功能一体机) [ ^ ]


这篇关于如何在嵌套的gridview中编辑的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆