title: gridview not visible in updatepanel in ASP.NET
body: <p>I currently have a <code>GridView</code> in a pop-up control. The <code>GridView</code> is embedded in an <code>UpdatePanel</code> and I have the window pop-up showing nothing on it. However, when I debug through it I see that the <code>GridView</code> has data in it and it is bound, but I am not noticing any changes. I even tried to call the Update method on the <code>UpdatePanel</code>, but received no changes in that either.</p>
  
  <p>Basically what I wish to do is show a blank page up until my data has been loaded in. After the <code>GridView</code> has the data bound to it I would like it to be visible. Please find the below code snippet of the current process.</p>
  
  <p>ASPX source:</p>
  
  <pre><code>&lt;dx:ASPxPopupControl ID="ASPxPopupItem" runat="server" ClientIDMode="AutoID" LoadingPanelImagePosition="Bottom"
      Modal="True" PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter"
      EnableAnimation="False" HeaderText="Item Checker" 
      Width="614px"&gt;
      &lt;ContentCollection&gt;
          &lt;dx:PopupControlContentControl ID="PopupCoverageItem" runat="server" SupportsDisabledAttribute="True"&gt;
              &lt;table style="width: 611px" cellpadding="3" cellspacing="3"&gt;
                  &lt;tr&gt;
                      &lt;td align="center"&gt;
                          Title
                      &lt;/td&gt;
                  &lt;/tr&gt;
                  &lt;tr&gt;
                      &lt;td colspan="2"&gt;
                          &lt;div style="height: 75px; overflow: auto; width: 595px;"&gt;
                              &lt;asp:UpdatePanel runat="server" ID="udpItems" UpdateMode="Conditional"&gt;
                                  &lt;ContentTemplate&gt;
                                      &lt;asp:GridView runat="server" ID="gvTitles" Width="575px" AutoGenerateColumns="false"&gt;
                                          &lt;Columns&gt;
                                              &lt;asp:TemplateField ItemStyle-HorizontalAlign="Center" HeaderStyle-Width="90px"&gt;
                                                  &lt;ItemTemplate&gt;
                                                      &lt;center&gt;
                                                          &lt;asp:ImageButton OnClick="btnSelect_Click" ID="lnk_Select" runat="server" CommandArgument='&lt;%# Eval("title") %&gt;'
                                                              ImageUrl="~/images/save.png" ToolTip="Choose this record" /&gt;
                                                      &lt;/center&gt;
                                                  &lt;/ItemTemplate&gt;
                                                  &lt;HeaderStyle Width="90px"&gt;&lt;/HeaderStyle&gt;
                                                  &lt;ItemStyle HorizontalAlign="Center"&gt;&lt;/ItemStyle&gt;
                                              &lt;/asp:TemplateField&gt;
                                              &lt;asp:BoundField HeaderText="Item ID" DataField="item_id" SortExpression="item_id" /&gt;
                                              &lt;asp:BoundField HeaderText="Title" DataField="title" SortExpression="title" /&gt;
                                              &lt;asp:BoundField HeaderText="Date" DataField="date" SortExpression="date" /&gt;
                                          &lt;/Columns&gt;
                                      &lt;/asp:GridView&gt;
                                  &lt;/ContentTemplate&gt;
                              &lt;/asp:UpdatePanel&gt;
                          &lt;/div&gt;
                      &lt;/td&gt;
                  &lt;/tr&gt;
                  &lt;tr&gt;
                      &lt;td align="center"&gt;
                          &lt;asp:Button runat="server" ID="btnCancelTitle" Text="Cancel" CssClass="popupButton"
                              OnClick="btnCancelTitle_Click" /&gt;
                      &lt;/td&gt;
                  &lt;/tr&gt;
              &lt;/table&gt;
          &lt;/dx:PopupControlContentControl&gt;
      &lt;/ContentCollection&gt;
  &lt;/dx:ASPxPopupControl&gt;
  </code></pre>
  
  <p>C# back end:</p>
  
  <pre><code>// Bind the data from the returning SQL query and update
              gv.DataSource = npgDat;
              gv.DataBind();
              udpItems.Update();
  </code></pre>
  
  <p>Unfortunately there isn't much more of the C# back-end that I can show since we're using a company specific Query tool that works well in other situations.</p>
  
  <p>Thanks</p>