title: Gridview inside updatepanel
body: <p>How do i update gridView inside UpdatePanel.
  My delete button i okay. But I have to refresh page to see changes.</p>
  
  <p>btn Button and litTest is for checking updatePanel.</p>
  
  <p>I hope anyone can help me whats wrong...</p>
  
  <blockquote>
  <pre><code> &lt;asp:ScriptManager ID="ScriptManager1" runat="server"&gt;&lt;/asp:ScriptManager&gt;
  </code></pre>
  </blockquote>
  
  <pre><code>     &lt;asp:UpdatePanel ID="UpdatePanel1" EnablePartialRendering="true" runat="server"&gt;             
          &lt;ContentTemplate&gt;
              &lt;asp:Literal ID="litTest" runat="server" /&gt;
                &lt;asp:GridView 
                  ID="GridViewBruger"
                  CssClass="TableSort"
                  runat="server" 
                  CellPadding="4" 
                  GridLines="Horizontal"
                  AutoGenerateColumns="False"
                  width="500"
                  onrowcommand="GridViewCase_RowCommand"&gt;
                      &lt;Columns&gt;
                          &lt;asp:BoundField DataField="FilePath" /&gt;
                          &lt;asp:BoundField DataField="File" ItemStyle-HorizontalAlign="Center" HeaderText="File" ItemStyle-Width="200px" HeaderStyle-CssClass="header"/&gt;
                          &lt;asp:BoundField DataField="Date" ItemStyle-HorizontalAlign="Center" HeaderText="Date"/&gt; 
                          &lt;asp:buttonfield buttontype="Image" ItemStyle-HorizontalAlign="Center"  ImageUrl="~/img/trash.png" commandname="Del" text="Slet" HeaderText="Delete"/&gt;             
                      &lt;/Columns&gt; 
                  &lt;/asp:GridView&gt;                         
          &lt;/ContentTemplate&gt;
       &lt;/asp:UpdatePanel&gt;
  
       &lt;asp:Button ID="btn" Text="testUpdatePanel" runat="server" OnClick="btn_Click" /&gt;
  </code></pre>
  
  <p>Thanks!!</p>