Nesting Datagrids

J

John

Hello,

I am trying to nest a datagrid inside another but am
experiencing a few problems.
The code I am using is:

<asp:DataGrid id="dg1" runat="server"
itemstyle-wrap="true">
<Columns>
<asp:TemplateColumn HeaderText="Class">
<ItemTemplate>
''Second Datagrid here
<asp:Datagrid id="dg2" runat="server">
<columns>
<asp:TemplateColumn HeaderText="Code">
<ItemTemplate>
<asp:TextBox id="ClassCode" runat="server"/>
</ItemTemplate>
</asp:TemplateColumn>
</columns>
</asp:Datagrid> 'End of second datagrid
</ItemTemplate>
</TemplateColumn>
</Columns>
</asp:DataGrid>

Only problem is when I run this there is no second
Datagrid nested within the first, am I putting it in the
wrong place?
Any response would be greatly appreciated.

Thanks

John
 

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,774
Messages
2,569,596
Members
45,133
Latest member
MDACVReview
Top