title: ASP.net GridView doesn't show
body: <p>I have GridView on my page:</p>
  
  <pre><code>&lt;%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %&gt;
  
  &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
  
  &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
  &lt;head runat="server"&gt;
      &lt;title&gt;&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;form id="form1" runat="server"&gt;
      &lt;div&gt;
  
          &lt;asp:GridView ID="GridView1" runat="server" 
              onselectedindexchanged="GridView1_SelectedIndexChanged"&gt;
          &lt;/asp:GridView&gt;
  
      &lt;/div&gt;
      &lt;asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="Button" /&gt;
      &lt;/form&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>And i use button to set grid view datasource:</p>
  
  <pre><code>DataAdapter adapter=new DataAdapter(SqlCommand,SqlConn);
  DataTable tbl=new Datatable();
  adapter.Fill(tbl);
  GridView1.DataSource=tbl;
  </code></pre>
  
  <p>From debug mode i can see that datatable is filled property and does contain data. But i can see nothing in the screen. What's the problem</p>
  
  <p>P.S. Found the simillar question except that in that question no data source was set</p>