views:

1287

answers:

2

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

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

Many thanks in advance.

+2  A: 

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

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

TStamper
A: 

Dears ...

i was writing in my blog about this issue but for c# , you can review the post and check if it will be helpful or not ,

http://blog.waleedmohamed.net/2009/04/show-grid-view-header-and-footer-when.html

i was using a generic way with an helper to retrieve an empty list to fill the gird please check and if u have any quest don't hesitate to contact me or ask it on stack site

Waleed Mohamed