显示页眉/页脚时的GridView是空VB.net [英] Show Header/Footer when Gridview is Blank VB.net

查看:110
本文介绍了显示页眉/页脚时的GridView是空VB.net的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道有一个解决方案,但我在努力得到它转换为正确VB:(

I realise there is a solution for this but I am struggling to get it to convert to VB correctly :(

我已经得到了一个级联组具有根据每个人的数据结果,我真的很高兴,下拉菜单的。

I have managed to get a cascading set of dropdowns with data based upon each others results which I was really pleased with.

不过由于回发电网将消失,直到选择了第二个值,看起来可怕

However due to the post back the grid will disappear until the second value is selected and looks awful

反正是有内VB,让头部留下来,如果有网格视图中没有数据?

Is there anyway within VB to allow the header to stick around if there is no data within the grid view?

提前非常感谢。

推荐答案

是的,有可手动完成的,这里是code,做这一切在C#的,只是用的转换器,它会提供给你在VB

Yes there is a way that can be done manually, here is the code that does it all in C# Example, just use a converter and it'll give it to you in VB

或按照这些例子 SO GridView控件 - 显示在空数据源标题<。 / A>

or follow these examples SO GridView - Show headers on empty data source.

这篇关于显示页眉/页脚时的GridView是空VB.net的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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