Solved

suppressing nested GridView if a row is not selected

Posted on 2010-09-15
2
489 Views
Last Modified: 2012-05-10
hello, i successfully implemented this code:

http://msdn.microsoft.com/en-us/library/aa992038(v=VS.90).aspx

the problem i'm having with it is this: I need to be able to suppress the nested grid for rows which are not presently selected, otherwise the control looks completely ridiculous ( see image )
 grid problem
the nested grid should ONLY show up for "INCOME" because that is the selected parent category. housing and transportation should not display anything
0
Comment
Question by:dantcho
  • 2
2 Comments
 

Author Comment

by:dantcho
ID: 33684960
update: this was only working for me because i still had SelectedValue of the parent grid loading my select parameter of the child grid

when i try to rely solely on the code posted by microsoft, it actually doesnt work at all

SqlDataSource s = (SqlDataSource)e.Row.FindControl("SQLISPSteps");
            s.SelectParameters[0].DefaultValue = e.Row.Cells[0].Text;

the e.Rows.Cells[0].Text returns NULL when i add a breakpoint and investigate, eventhough as you can clearly see in the image i posted that the values are not null
0
 

Accepted Solution

by:
dantcho earned 0 total points
ID: 33685556
solved it myself with FindControl construction
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now