title: ASP.Net GridView show image
body: <p>Is it possible to show an image in GridView in <code>AutoGenerateColumns</code> mode? I've tryed this one</p>
  
  <pre><code>    private void LoadEventLog(string servicesName)
      {
          var bmp = new Bitmap(32, 32);
          using (var g = Graphics.FromImage(bmp))
          {
              g.Clear(Color.Purple);
          }
          var logs = ServiceHelper.GetEventLogs(servicesName)
              .Select(x =&gt; new {x.MachineName, x.TimeGenerated, Category = GetCategory(x.Category), x.Message, Img=bmp })
              .Take(100)
              .ToArray(); //
          ServicesGrid.DataSource = logs;
          ServicesGrid.DataBind();
      }
  </code></pre>
  
  <p>aspx:</p>
  
  <pre><code>&lt;asp:GridView ID="ServicesGrid" OnRowDataBound="ServicesGrid_OnItemDataBound" 
       OnPageIndexChanging="ServicesGrid_OnPageIndexChanging"
       AutoGenerateColumns="true" runat="server" AllowPaging="True" /&gt;
  </code></pre>
  
  <p>but it doesn't work.</p>