如果记录为空,则显示具有相同宽度的网格标题 [英] show grid headers with same width if records were empty

查看:65
本文介绍了如果记录为空,则显示具有相同宽度的网格标题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都可以告诉我如何在没有记录的情况下使我的网格具有相同的宽度........通过页脚宽度进行,但仍然网格在缩小时没有记录.... alos我尝试通过制作标题列宽但不工作...



i有一个网格它应该显示标题,因为它是没有记录就没有让网格缩小....目前当我的网格没有记录时,网格正在缩小,减小了它的宽度....

could any one please tell me how to make my grid of same width when there are no records in it........ itried by making footer width but still grid is shrinking when there are no records....alos i tried by making header column width but not working...

i have a grid it should display the headers as it is when no records are there without getting the grid shrinking....currently when my grid has no records the grid is shrinking reducing its width....

推荐答案

检查这些链接:

http://www.aspdotnet-suresh.com/ 2010/12 / v-behaviorurldefaultvmlo.html [ ^ ]

http ://www.aspsnippets.com/articles/show-header-when-gridview -is-empty.aspx [ ^ ]
Check these links:
http://www.aspdotnet-suresh.com/2010/12/v-behaviorurldefaultvmlo.html[^]
http://www.aspsnippets.com/articles/show-header-when-gridview-is-empty.aspx[^]


这帮助了我

http://www.aspsnippets.com/Articles/Display-GridView-with -Empty-Message-and-Header-and-Footer-when-data-in-ASP.Net.aspx [ ^ ]


将网格放在div标签内,将div宽度设为ur自定义宽度,网格宽度为100%
put the grid inside a div tag, make the div width as ur custom width and grid width as 100%


这篇关于如果记录为空,则显示具有相同宽度的网格标题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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