title: Grid OnDataItemBound Event
body: <p>What should go inside this method?  I have a grid displaying results from my SQL Query --- but the grid never populates.  The grid is created using HTML and this is how my OnDataItemBound event reads....but what should go here?</p>
  
  <pre><code>protected void dtgfourfiveseven_OnItemDataBound(object sender, DataGridItemEventArgs e)
  {
    if (e.Item.ItemType == ListItemType.AlternatingItem || e.Item.ItemType == ListItemType.Item)
    {                                                   
  
    }
  }
  </code></pre>
  
  <p>This is my html I am using to create the grid</p>
  
  <pre><code>&lt;asp:DataGrid runat="server" ID="dtgfourfiveseven" AutoGenerateColumns="false" CssClass="DataGrids"
  GridLines="Both" ShowFooter="true" Visible="false" OnItemDataBound="dtgfourfiveseven_OnItemDataBound"&gt;
  &lt;ItemStyle CssClass="row" /&gt;
  &lt;FooterStyle CssClass="DataGridFooters" /&gt;
  &lt;HeaderStyle CssClass="DataGridHeaders" /&gt;
  &lt;Columns&gt;
      &lt;asp:BoundColumn DataField="Employee Name" HeaderText="Employee Name" ItemStyle-Width="100px"&gt;&lt;/asp:BoundColumn&gt;
      &lt;asp:BoundColumn DataField="Eligible For Rehire" HeaderText="Eligible For Rehire" ItemStyle-Width="50px"&gt;&lt;/asp:BoundColumn&gt;
      &lt;asp:BoundColumn DataField="Not Eligible For Rehire" HeaderText="Not Eligible For Rehire" ItemStyle-Width="50px"&gt;&lt;/asp:BoundColumn&gt;
  &lt;/Columns&gt;
  </code></pre>
  
  <p></p>