title: ASP.NET- Gridview not display image on a web page
body: <p>i've been trying and trying to find a method to display images on a webpage using gridview. to fill the grid view i am using data table. it isn't giving any error and yet not displaying the image. </p>
  
  <p>Here is my code.</p>
  
  <pre><code>            DataTable validationGraph = new DataTable();
              DataColumn dcol = new DataColumn("FilePath", typeof(Image)); 
              validationGraph.Columns.Add(dcol);
              Image img = new Image();
                  img.ImageUrl = "~/ClientLogo.png";
                  img.DataBind();
                  DataRow drow = validationGraph.NewRow();
                  drow["FilePath"] = img;
                  validationGraph.Rows.Add(drow);
  
              ValidationsGridView.DataSource = validationGraph;
              ValidationsGridView.DataBind();
  </code></pre>
  
  <p>here is the html for that code:</p>
  
  <pre><code>           &lt;asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" 
        runat="server"&gt;
              &lt;/asp:Content&gt;
              &lt;asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server"&gt;
              &amp;nbsp;
              &lt;asp:GridView ID="ValidationsGridView" runat="server" AutoGenerateColumns = "False"
              Font-Names = "Arial" &gt;
              &lt;Columns&gt;
               &lt;asp:ImageField DataImageUrlField="FilePath" ControlStyle-Width="100"
                   ControlStyle-Height = "100" HeaderText = "Preview Image"/&gt;
  
               &lt;/Columns&gt;
               &lt;/asp:GridView&gt;
                &lt;/asp:Content&gt;
  </code></pre>
  
  <p>My code is not showing the picture on the web page still.</p>
  
  <p>Kindly help me. :(</p>