Solved

suppressing nested GridView if a row is not selected

Posted on 2010-09-15
2
486 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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

708 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

11 Experts available now in Live!

Get 1:1 Help Now