本文介绍了页脚值显示在网格外部的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在Grid外部显示GridView页脚值,对于外部网格,我有一个Label.在该标签中,我要显示网格页脚值. 谁能帮我解决这个问题...
Hi, How to display GridView footer Value in outside of Grid, for ex out side of grid i have a Label . In that Label i want to be to display Grid footer value. Can any one help me to solve this issue...
推荐答案您好 在Gridview RowDataBound事件上,将值分配给标签,如下所示 Hi On the Gridview RowDataBound event assign the value to the label as follow protected void Gridview_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.Footer) { Label lblGrdLabel = (Label)e.Row.FindControl("GrdLabel"); OutSideLabel.Text=lblGrdLabel.Text } }
我认为这可能对您有帮助.....
I think it may help you.....
更多推荐
页脚值显示在网格外部
发布评论