title: How to bind Text in Gridview DataBinder asp.net c#?
body: <p>I am displaying my table values in the Gridview, In database in the status column i am storing the values as 'Y' and 'N' for 'Active' and 'Inactive' respectively. But while showing in the Gridview i want to show status as Active and InActive and not as Y and N.</p>
  
  <pre><code> &lt;asp:Label ID="lblmerstatus" runat="server" Text= '&lt;%# DataBinder.Eval(Container, "DataItem.STATUS") == "Y" ? "Active" : "InActive"%&gt;'&gt;&lt;/asp:Label&gt;
  </code></pre>
  
  <p>But its always showing me only InActive even when the status is Y . Please help</p>