title: GridView in ASP.NET is not displaying with or without data
body: <p>I'm adding a GridView &amp; then showing data in it from a SQL Server database. The problem is that the GridView is not displaying in the browser with or without data.</p>
  
  <p>Here is my code: </p>
  
  <pre><code>&lt;asp:GridView ID="GridAllStore"  runat="server" AutoGenerateColumns="False" Width="100%"  ViewStateMode="Enabled"&gt;
  </code></pre>
  
  <p></p>
  
  <pre><code>public partial class AdminPanel : System.Web.UI.Page
  {
      storelocatorDataSetTableAdapters.storedbTableAdapter tastore = new storelocatorDataSetTableAdapters.storedbTableAdapter();
      storelocatorDataSetTableAdapters.View_1TableAdapter taview = new storelocatorDataSetTableAdapters.View_1TableAdapter();
  
      List&lt;storelocatorDataSet.storedbRow&gt; lststore = new List&lt;storelocatorDataSet.storedbRow&gt;();
      List&lt;storelocatorDataSet.View_1Row&gt; lstview = new List&lt;storelocatorDataSet.View_1Row&gt;();
      protected void Page_Load(object sender, EventArgs e)
      {
          lstview = taview.GetData().ToList();
          GridAllStore.DataSource = lstview; 
      }
  }
  </code></pre>