Looking to retrieve data from a nested data grid on an aspx page using JavaScript.
Check out the following code snippet:
<tr>
<td colspan="2" align="center">
<asp:DataGrid ID="sampleData" AutoGenerateColumns="false" runat="server" OnItemDataBound="sampleData_ItemDataBound">
<Columns>
<asp:BoundColumn HeaderText="Name" DataField="Name" />
<asp:BoundColumn HeaderText="City" DataField="City" />
<asp:BoundColumn HeaderText="State" DataField="State" />
<asp:TemplateColumn HeaderText="Inner Data">
<ItemTemplate>
<asp:DataGrid ID="innerData" AutoGenerateColumns="false" runat="server">
<Columns>
<asp:BoundColumn HeaderText="Name" DataField="Name" />
<asp:BoundColumn HeaderText="City" DataField="City" />
<asp:BoundColumn HeaderText="State" DataField="State" />
</Columns>
</asp:DataGrid>
</ItemTemplate>
</asp:TemplateColumn>
</Columns>
</asp:DataGrid>
</td>
</tr>