title: How to write IF condition in column of Web grid
body: <p>i have get error the create the if condition in to column of WEB GRID so...please help to improve my code and solved to my prob....</p>
  
  <pre><code>grid.Column("Status", format: item =&gt; 
  @&lt;text&gt;
  @if (item.Is_active = true)
  { 
      @&lt;a href="Url.Action("UserStatus", "Admin")"&gt;&lt;img src="../../images/Active.png"/&gt;&lt;/a&gt; 
  } else
  { 
      @&lt;a href="Url.Action("UserStatus", "Admin")"&gt;&lt;img src="../../images/Deactive.png"/&gt;&lt;/a&gt; 
  }
  &lt;/text&gt;),
  </code></pre>