Can't get drill down report working...

G

Guest

Hi,

I'm trying to set up a drill down report with two grids, one of them inside
the other.

I've studied one book on this:
Building web solutions with asp.net and ado.net by Dino Esposito

and one article from asptoday.com

Drilldowns In DataGrids id=1986

Both of which add a new column to the first grid and within this column
another grid with the drill down report. This example Works very well.

So I have created two DataView objects with a RowFilter, one applying to the
first grid and the other applying to the second grid. And it runs perfect,
but shows the same value from grid2 beneth every record from grid1, and it
should only show grid2 upon a certain criteria, see below.

Depending on a criteria, i.e. when a column's ("M") value is 1 then no
values from the second grid should be rendered but when the value = 2 then
every value should render from the second grid.

The problem I have now is to reference the second grid from code, i.e.

grid2.Visible = "True"

The first grid is accesible from code, i.e. grid1.Visible = "True"

A piece of code...
<asp:datagrid id="grid1" runat="server"...
<Columns>
<asp:BoundColumn ....
</asp:BoundColumn>
<asp:TemplateColumn>
<ItemTemplate>
<tr>
<td colspan="21">
<asp:DataGrid id="grid2" DataSource='<%# dvRes2 %>'
runat="server" Visible="False"...


Any ideas?

TIA

Kenneth P
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,743
Messages
2,569,478
Members
44,899
Latest member
RodneyMcAu

Latest Threads

Top