title: GridView - Show headers on empty data source
body: <p>In C# how do I still show the headers of a gridview, even with the data source is empty. </p>
  
  <p>I am not auto generating the columns as they are all predefined. </p>
  
  <p>Currently what I am doing is the following.</p>
  
  <p>Get a DataTable back from a stored procedure, then set the DataSource of the gridview, and then call DataBind().</p>
  
  <p>This works fine when I have data, but when no rows are returned then I just get a blank spot where the grid should be.</p>
  
  <p><strong>Edit: Thanks all for the .NET 4+ property. I asked this back in the .NET 3.5 days. This is much easier now. :)</strong></p>