C# 如何在C中动态添加datagridview中的行#
如何在c#中的C# 如何在C中动态添加datagridview中的行#,c#,C#,如何在c#中的datagridview中动态添加行。最后一行的单元格和打印总答案?如果我的回答正确,您需要页脚行。您必须添加一个 <FooterTemplate> </FooterTemplate> 你能详细说明一下吗?请看一下这个;也许发布一些你的代码? protected void MyGrid_RowCreated(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == D
datagridview
中动态添加行。最后一行的单元格和打印总答案?如果我的回答正确,您需要页脚行。您必须添加一个
<FooterTemplate> </FooterTemplate>
你能详细说明一下吗?请看一下这个;也许发布一些你的代码?
protected void MyGrid_RowCreated(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.Footer)
{
//e.Row.FindControl("what ever control i have");
//use the control to modify content
}
}