Collapsing Gridview Rows

Please support our ASP.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Mar 2008
Posts: 8
Reputation: lagyossarian is an unknown quantity at this point 
Solved Threads: 0
lagyossarian lagyossarian is offline Offline
Newbie Poster

Collapsing Gridview Rows

 
0
  #1
Jun 23rd, 2008
I have an ASP.NET page with several Gridviews on it. I want to be able to collapse the rows so I can see all of the gridviews and then be able to expand a gridview's rows so I can see the data on-demand. Any ideas on how to do this?
Reply With Quote Quick reply to this message  
Join Date: Oct 2006
Posts: 125
Reputation: bala24 is an unknown quantity at this point 
Solved Threads: 11
bala24's Avatar
bala24 bala24 is offline Offline
Junior Poster

Re: Collapsing Gridview Rows

 
0
  #2
Jun 24th, 2008
Well not sure about this but I think you can try this out.

I am assuming that you are using Nested Grids i.e a parent gridview with each row being a gridview in itself.

1). Add an HTML image control as one more column along with the gridview.

2).Add a javascript to its onclick event to change the display style of the gridview control to none/block to show/hide the gridview resp.

3). Hope this solves your purpose. You can also change the image to expand/collapse icon to give effect on each click.
Michelangelo

"The best place to find a helping hand is at the end of your own arm"
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the ASP.NET Forum
Thread Tools Search this Thread



Tag cloud for ASP.NET
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC