Have an Empty Grid Show In Asp.net page

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?
 
J

John Timney \(MVP\)

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,045
Latest member
DRCM

Latest Threads

Top