动态添加标头中的数据 [英] Add data in the header dynamically

查看:133
本文介绍了动态添加标头中的数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我有一个网格,其中动态创建标题,它包含总计,

我得到了查询总计并将其存储在隐藏字段中,但值存储在

Hi,

I have a grid in which in creating a header dynamically, it contains total,
I'm getting the total from the query and storing it in the hidden field, but value is stored in the

(e.Row.RowType == DataControlRowType.DataRow) 



但是标题是在


but the header is getting created in

(e.Row.RowType == DataControlRowType.Header)

如何赋值在标题文本中

推荐答案

解决了它:在绑定网格之前将数据绑定在隐藏字段中
solved it : bounded the data in the hidden field before binding the grid


这篇关于动态添加标头中的数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆