Link to home
Start Free TrialLog in
Avatar of watherton
watherton

asked on

Roll up a Datagrid

Hi team, I am currently working on a project that requires a form to be completed to gather project briefing information.

I am using tables at the moment to recreate a paper based form using ASP.NET (C#). The problem is that the form is big and is begining to look unprofessional. Is there a way of developing a datagrid that has sections that I can roll up (using a plus sign) and roll down (using a minus sign), just like you would in a tree view. If this is best acheived in a component, then please advise.

Cheers

Wayne Atherton
Avatar of stumpy1
stumpy1

try Denis Bauer's hierargrid found at http://www.denisbauer.com/ASPNETControls/HierarGrid.aspx
Ive used it before and its very good.

Theres also Microsofts Treeview control available at http://www.asp.net/ControlGallery/ControlDetail.aspx?Control=75&tabindex=2 if your clients will be running IE

If it's a form I would suggest to make those tables as SERVER control and then you can dynamically show/hide those tables that you have!

You just need to add a button for different tables. Based on the click you can display/hide tables!

-tushar

Avatar of watherton

ASKER

tushar, how do I expose the table property in the code behind file. I am using c#

My table is called tblProjectBrifSection1

Cheers

Wayne Atherton
Just right click the table in your design view and click on "Run As Surver"

You'll be able to access your table from code behind after that.

-tushar
ASKER CERTIFIED SOLUTION
Avatar of tusharashah
tusharashah

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
tushar, thanks for your help.
Glad I could help.  Thanks for the A!

-tushar