本文介绍了页脚值显示在网格外部的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在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...
推荐答案
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.....
这篇关于页脚值显示在网格外部的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!