B
Beemer Biker
Cant believe I spent 4 hours trying to figure out why only the first grid in
my new multiview shows up and the other grids are invisible in the other
views I just added. The database tables were not populated except for the
table I had in the first view! INCREDIBLE: All that data I saw during
design, and assumed it came from the database, was just bill gates made up
data that the designer needed so you could see what you were doing.
So who decided that the header, footer, even the grid would not be displayed
if there is no data?
I googled around and found a solution here
http://weblogs.asp.net/bradygaster/archive/2006/10/24/Empty-GridView_2C00_-Invisible-Footer.aspx
simple, but I am not using ObjectDataSource.
I found this, but could not get it to work:
http://dotnetslackers.com/GridView/re-27953_Displaying_GridView_When_No_Data_Exists.aspx
I added the required "usings" and then put that class at the bottom of
"Default.aspx.cs" but the override CreateChildControls never fired. Is
there a simple way to get the grid and its headers to show up?
...TIA..
--
=======================================================================
Beemer Biker joestateson at grandecom dot net
http://TipsForTheComputingImpaired.com
http://ResearchRiders.org Ask about my 99'R1100RT
=======================================================================
my new multiview shows up and the other grids are invisible in the other
views I just added. The database tables were not populated except for the
table I had in the first view! INCREDIBLE: All that data I saw during
design, and assumed it came from the database, was just bill gates made up
data that the designer needed so you could see what you were doing.
So who decided that the header, footer, even the grid would not be displayed
if there is no data?
I googled around and found a solution here
http://weblogs.asp.net/bradygaster/archive/2006/10/24/Empty-GridView_2C00_-Invisible-Footer.aspx
simple, but I am not using ObjectDataSource.
I found this, but could not get it to work:
http://dotnetslackers.com/GridView/re-27953_Displaying_GridView_When_No_Data_Exists.aspx
I added the required "usings" and then put that class at the bottom of
"Default.aspx.cs" but the override CreateChildControls never fired. Is
there a simple way to get the grid and its headers to show up?
...TIA..
--
=======================================================================
Beemer Biker joestateson at grandecom dot net
http://TipsForTheComputingImpaired.com
http://ResearchRiders.org Ask about my 99'R1100RT
=======================================================================