Have an Empty Grid Show In Asp.net page

  • Thread starter Thread starter Doogie
  • Start date Start date
D

Doogie

Hi,
I am trying to create an asp.net page for a web site and would like to
put a grid on the page that won't be filled until a user clicks a
button. But I want the grid to be visible before the user clicks the
button. I've tried the data grid, table, etc and cannot find one that
does this. Is there one that I'm missing?
 
Well all your trying to do is display a gridview on the page, then postback
and bind to it to fill it once a button click occurs. To display an empty
one - it needs to have data, which could as easily be spaces as your actual
data.

Create a dynamic dataset and bidn it on the fly.
http://www.dotnetbips.com/articles/727f44ea-8183-4bef-a26d-727ee6324f8c.aspx

When your button click occurs, bind it to your actual data instead.

Regards

John Timney (MVP)
http://www.johntimney.com
http://www.johntimney.com/blog
 
Back
Top