如何在嵌套的gridview中编辑 [英] how to edit in nested 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屋!