title: gridview is not updating in update panel
body: <p>I have a grid view inside the update panel Like this.</p>
  
  <pre><code>&lt;asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional"&gt;
  &lt;ContentTemplate&gt;
  
  
  &lt;asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" BackColor="White"
                                              BorderColor="#D9EFFD" BorderStyle="Solid" BorderWidth="1px" CellPadding="3" DataSourceID="SqlDataSource1"
                                              Font-Names="Tahoma" Font-Size="8pt" GridLines="Horizontal" Width="100%" ForeColor="#010101"
                                              ShowHeaderWhenEmpty="True"&gt;
                                              &lt;Columns&gt;
                                                  &lt;asp:BoundField DataField="MODE_TPT_ENTRY" HeaderText="Balance" SortExpression="MODE_TPT_ENTRY"&gt;
                                                      &lt;HeaderStyle HorizontalAlign="Left" /&gt;
                                                      &lt;ItemStyle Font-Bold="True" HorizontalAlign="Left" Width="120px" ForeColor="#035BAC" /&gt;
                                                  &lt;/asp:BoundField&gt;
                                                  &lt;asp:BoundField DataField="OB" HeaderText="Opening" SortExpression="OB"&gt;
                                                      &lt;ItemStyle HorizontalAlign="Right" Width="70px" /&gt;
                                                  &lt;/asp:BoundField&gt;
                                                  &lt;asp:BoundField DataField="ISSUED" HeaderText="Arrival" SortExpression="ISSUED"&gt;
                                                      &lt;ItemStyle HorizontalAlign="Right" Width="70px" /&gt;
                                                  &lt;/asp:BoundField&gt;
                                                  &lt;asp:BoundField DataField="UNTARE" HeaderText="UNTARE" SortExpression="UNTARE" Visible="False" /&gt;
                                                  &lt;asp:BoundField DataField="TARE" HeaderText="Tare" SortExpression="TARE"&gt;
                                                      &lt;ItemStyle HorizontalAlign="Right" Width="70px" /&gt;
                                                  &lt;/asp:BoundField&gt;
                                                  &lt;asp:BoundField DataField="BALANCE" HeaderText="Balance" SortExpression="BALANCE"&gt;
                                                      &lt;ItemStyle HorizontalAlign="Right" Width="70px" /&gt;
                                                  &lt;/asp:BoundField&gt;
                                                  &lt;asp:BoundField DataField="RRY" HeaderText="Recovery" SortExpression="RRY"&gt;
                                                      &lt;ItemStyle HorizontalAlign="Right" Width="70px" /&gt;
                                                  &lt;/asp:BoundField&gt;
                                                  &lt;asp:BoundField DataField="TRANSPORT_NO" HeaderText="TRANSPORT_NO" SortExpression="TRANSPORT_NO"
                                                      Visible="False" /&gt;
                                              &lt;/Columns&gt;
                                              &lt;FooterStyle BackColor="White" ForeColor="#000066" /&gt;
                                              &lt;HeaderStyle BackColor="#D9EFFD" Font-Bold="True" ForeColor="#010101" HorizontalAlign="Right" /&gt;
                                              &lt;PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" /&gt;
                                              &lt;RowStyle ForeColor="#101010" HorizontalAlign="Right" /&gt;
                                              &lt;SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" /&gt;
                                              &lt;SortedAscendingCellStyle BackColor="#F1F1F1" /&gt;
                                              &lt;SortedAscendingHeaderStyle BackColor="#007DBB" /&gt;
                                              &lt;SortedDescendingCellStyle BackColor="#CAC9C9" /&gt;
                                              &lt;SortedDescendingHeaderStyle BackColor="#00547E" /&gt;
                                          &lt;/asp:GridView&gt;
  
  
  &lt;asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="&lt;%$ ConnectionStrings:ConnectionString3 %&gt;"
                                                  ProviderName="&lt;%$ ConnectionStrings:ConnectionString3.ProviderName %&gt;" SelectCommand="SELECT * from cms_production"&gt;
                                              &lt;/asp:SqlDataSource&gt;
  &lt;/ContentTemplate&gt;
  &lt;/asp:UpdatePanel&gt;
  </code></pre>
  
  <p>and a JavaScript function which is refreshing the panel after 5 seconds like this</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  window.setInterval(function () {
  __doPostBack('&lt;%= UpdatePanel1.ClientID %&gt;', '');
          }, 5000);
  &lt;/script&gt;
  </code></pre>
  
  <p>Problem is that when I change in the data which is bound with gridview then no change shows after five seconds.Can any tell me what is problem in my code or any other additional thing to add in my code to make gridview updated inside the update panel without page redirect.</p>