在GridView中更改标题名称 [英] change header names in gridview

查看:101
本文介绍了在GridView中更改标题名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在asp.net C#中创建了一个网页,我在其中放置了一个gridview,然后从该网格视图中的db表中导入了一些指定的数据.但我想以编程方式更改gridview的所有列的标题名称.请告诉我该怎么做.
在此先感谢

i have created a web page in asp.net C#, i put a gridview in it and import some specified data from db table in that grid view. but i want to change the header names of all the colms of gridview programatically. please tell me how to do this.
thanks in advance

推荐答案

请参阅此链接
http://justgeeks.blogspot.in/2011/05/programmatically-setting-header- on.html [ ^ ]
在此处,给出了以编程方式设置GridView标头的代码.
Please see this link
http://justgeeks.blogspot.in/2011/05/programmatically-setting-header-on.html[^]
where, code is given to set the GridView headers programmatically.


这篇关于在GridView中更改标题名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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