页脚值显示在网格外部

编程入门 行业动态 更新时间:2024-10-24 18:17:53
本文介绍了页脚值显示在网格外部的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

如何在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.....

更多推荐

页脚值显示在网格外部

本文发布于:2023-11-23 03:27:39,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1619912.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:网格   页脚值

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!