Solved

suppressing nested GridView if a row is not selected

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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

Suggested Solutions

Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

777 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