Search   Articles   Dev Forums   Personalize   Favorites   Member Login   ASP.Net Hosting
DevASP.NET for ASP.NET, VB.NET, XML and C# (C-Sharp) Developers Friday, January 09, 2009

Dev Articles
Search Directory
ASP.NET
VB.Net
C-Sharp
SQL Server
 
FREE 12 month online training for ASP.NET & MS Expression Studio and a Free copy of MS Expression Web with Windows Server Purchase

User Rating!

Home > Search > Articles & Samples > ASP.Net > Server Controls > DataGrid Control
Expanding / Collapsing GridView Rows        
Total Hits: 143  |  Today: 0 Author: SAMir Nigam       Rating:  
Read Reviews | Write Review |   Your Rating: 

This article presents Expand / Collapse functionality of the GridView rows using the JavaScript. To demostrate this functionality I’ve used an Image on the GridView header. Rows of the GridView will Expand and Collapse on successive clicks on this Image. In the above code, global variables have been initialized in the window.onload event. There are three methods- Toggle, ToggleImage & ToggleImage. The Toggle method is invoked on successive clicks on the header Image. This method first toggles the header imahge & then toggles the rows of the GridView by invoking the ToggleImage & ToggleImage methods.

DevASP.Net users Rating
What is your opinion?
Is this your listing?

    If this is your listing and you like to add the rating box
    displayed on the right side on your site you can use the following code.

Go Back
DevASP.Net - Disclaimer - Privacy
Copyright © 2008 DevASP.net