Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 250
  • Last Modified:

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
0
watherton
Asked:
watherton
  • 4
  • 2
1 Solution
 
stumpy1Commented:
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
0
 
tusharashahCommented:

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

0
 
wathertonAuthor Commented:
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
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
tusharashahCommented:
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
0
 
tusharashahCommented:
After making Table as 'Run as Server Control' you can simply use .Visible property of table to Show/Hide them like:

tblProjectBrifSection1.Visible = true;

OR

tblProjectBrifSection1.Visible = false;


-tushar
0
 
wathertonAuthor Commented:
tushar, thanks for your help.
0
 
tusharashahCommented:
Glad I could help.  Thanks for the A!

-tushar
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now