title: How to read values from nested asp.net DataGrid using Javascript
body: <p>I need to read the value from a nested data grid in aspx page using Javascript.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>&lt;tr&gt;
      &lt;td colspan="2" align="center"&gt;
          &lt;asp:DataGrid ID="sampleData" AutoGenerateColumns="false" runat="server" OnItemDataBound="sampleData_ItemDataBound"&gt;
              &lt;Columns&gt;
                  &lt;asp:BoundColumn HeaderText="Name" DataField="Name" /&gt;
                  &lt;asp:BoundColumn HeaderText="City" DataField="City" /&gt;
                  &lt;asp:BoundColumn HeaderText="State" DataField="State" /&gt;
                  &lt;asp:TemplateColumn HeaderText="Inner Data"&gt;
                      &lt;ItemTemplate&gt;
                          &lt;asp:DataGrid ID="innerData" AutoGenerateColumns="false" runat="server"&gt;
                              &lt;Columns&gt;
                                  &lt;asp:BoundColumn HeaderText="Name" DataField="Name" /&gt;
                                  &lt;asp:BoundColumn HeaderText="City" DataField="City" /&gt;
                                  &lt;asp:BoundColumn HeaderText="State" DataField="State" /&gt;
                              &lt;/Columns&gt;
                          &lt;/asp:DataGrid&gt;
                      &lt;/ItemTemplate&gt;
                  &lt;/asp:TemplateColumn&gt;
              &lt;/Columns&gt;
          &lt;/asp:DataGrid&gt;
      &lt;/td&gt;
  &lt;/tr&gt;
  </code></pre>