How to display an image in webgrid
<p>I need to display an image in the column of a webgrid. Webgrid is filled using the list returned from the controller.I used the below code in view and controller respectively: </p>

<pre><code>@using (Html.BeginForm(null, null, FormMethod.Post ))
{

&lt;div id ="DivGrid"&gt;
    @{
        WebGrid grid = new WebGrid(source: Model);
        @grid.GetHtml(htmlAttributes: new { id = "DataTable" }, columns: grid.Columns(
        grid.Column(format: @&lt;img src="@Href("vPath")"/&gt;),
        grid.Column("title","Product Name"),
        grid.Column("user_ID","User ID"),
        grid.Column("", format: @&lt;text&gt;@Html.ActionLink("Edit", "EditOrder", "OrderStatus", new { id = item.ID})&lt;/text&gt;)));
      //  grid.Column("", format: @&lt;text&gt;@Html.ActionLink("Delete", "DeleteOrder", "OrderStatus", new { id = item.ID}, new { onclick = "return confirm('Are you sure you wish to delete this Order status?');" })&lt;/text&gt;)));          
        }

&lt;/div&gt;



using (APM context = new APM())
            {
                lstorder = (from s in context.T_Order
                            join p in context.T_OrderDetails on s.ID equals p.Order_ID
                            join t in context.T_OrderDetailSpecification on p.ID equals t.OrderDetails_ID

                            join r in context.M_Product on p.Product_ID equals r.ID
                            where  s.OrderStatus_ID == 1 &amp;&amp; p.IsPreviewRequired == 1 &amp;&amp; p.OrderStatus_ID == 1

                            select new orderList
                            {
                                ID = p.ID,
                                vPath = r.VirtualPath,
                                product_ID = r.ID,
                                title = r.Title,
                                amount = t.Value,
                                user_ID= (int)s.User_ID,
                                sel_ID= (int)p.SelectionList_ID

                            }).ToList();

 return View(lstorder);
            }
</code></pre>

<p>But the code '<code>grid.Column(format: @&lt;img src="@Href("vPath")"/&gt;),</code>' not displaying the image .it simply showing the path something like /views/PreviewRequest/vPath</p>