Solved

suppressing nested GridView if a row is not selected

Posted on 2010-09-15
2
493 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

726 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