title: ASP.NET DataGrid and styling with CSS
body: <p>I have never had an issue with putting</p>
  
  <pre><code>th
  {
      background: #900;
  }
  </code></pre>
  
  <p>as a style in a css file and have that apply to the header row of an ASP datagrid.
  But for some reason today, I have a grid that is getting output with everything in TBODY
  and even the headers are in TD tags. Any ideas?</p>
  
  <p>One thing that is a little different for me is this is bound to a List instead of to a DataTable. Is this a normal behavior? Easy way to fix?</p>
  
  <p><strong>UPDATE</strong></p>
  
  <pre><code>&lt;asp:DataGrid ID="dgEmployees" runat="server"&gt;   
  &lt;/asp:DataGrid&gt;
  </code></pre>
  
  <p><strong>THE VALUE OF AN IDE</strong>
  Okay, so my DataGrid should have been a GridView.
  Teaches me to go and type in the  tag by hand again.
  Could not figure out what and the heck I had done wrong until I went and looked at an another project of mine.</p>