Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / July 2007

Tip: Looking for answers? Try searching our database.

Have an Empty Grid Show In Asp.net page

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Doogie - 19 Jul 2007 13:45 GMT
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?
John Timney (MVP) - 19 Jul 2007 13:48 GMT
Why can't you bind it with something like a piece of XML with spaces as its
content

Regards

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

> 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?
Doogie - 19 Jul 2007 20:14 GMT
> Why can't you bind it with something like a piece of XML with spaces as its
> content

I'm not real sure what you are getting at it exactly?
John Timney (MVP) - 19 Jul 2007 22:07 GMT
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

>> Why can't you bind it with something like a piece of XML with spaces as
>> its
>> content
>
> I'm not real sure what you are getting at it exactly?
Doogie - 20 Jul 2007 04:33 GMT
>To display an empty
> one - it needs to have data, which could as easily be spaces as your actual
> data.

I get it now...thanks I'll give that a try.

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.