为gridview添加标题 [英] add a title to gridview

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

问题描述

我有一个gridview,它在按钮点击时加载。它有5列。我想添加一个标题(居中对齐)到

i have a gridview which loads on button click. it has 5 columns. i want to add a title(center aligned) to that

推荐答案

嗨Rahul,



试试吧添加你的gridview标题。

Hi Rahul,

Try this to add your gridview title.
<asp:GridView ID="GridView1" runat="server" ...



Caption='<table border="1" width="100%" cellpadding="0" cellspacing="0" bgcolor="yellow"><tr><td>Grid Heading</td></tr></table>'



CaptionAlign="Top">


Gridview具有称为标题使用的属性那个



看看这个

GridView.Caption属性 [ ^ ]
Gridview has Property called caption use that

check out this
GridView.Caption Property[^]


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

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