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">
<aspataGrid id="grid2" DataSource='<%# dvRes2 %>'
runat="server" Visible="False"...
Any ideas?
TIA
Kenneth P
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">
<aspataGrid id="grid2" DataSource='<%# dvRes2 %>'
runat="server" Visible="False"...
Any ideas?
TIA
Kenneth P