如何在gridview中添加文本页脚? [英] how to add text footer in gridview?
本文介绍了如何在gridview中添加文本页脚?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
plj给我答案...
提前感谢...
解决方案
试试这个:
protected void MyGridView_RowDataBound ( object sender,GridViewRowEventArgs e)
{
if (e.Row。 RowType == DataControlRowType.Footer)
{
string txt = 你的页脚文字;
e.Row.Cells [ 0 ]。Controls.Add(txt);
}
}
您好,
请查看链接下面,
http: //stackoverflow.com/questions/8769930/changing-the-footer-text-in-gridview
http://stackoverflow.com/questions/2798424/trying-to-add-insert -row-to-footer-in-gridview-asp-net
http://www.asp.net/web-forms/tutorials/data-访问/自定义格式/显示 - 摘要 - 信息在gridview-s-footer-cs
希望他们有所帮助!
plj give me the answer...
thanks in advance...
解决方案
Try this:
protected void MyGridView_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.Footer) { string txt = "Your Footer Text"; e.Row.Cells[0].Controls.Add(txt); } }
Hi,
Please check the links below,
http://stackoverflow.com/questions/8769930/changing-the-footer-text-in-gridview
http://stackoverflow.com/questions/2798424/trying-to-add-insert-row-to-footer-in-gridview-asp-net
http://www.asp.net/web-forms/tutorials/data-access/custom-formatting/displaying-summary-information-in-the-gridview-s-footer-cs
Hope they are helpful!
这篇关于如何在gridview中添加文本页脚?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文