Rohan Ramani

Rohan Ramani

  • NA
  • 786
  • 144.9k

How to convert true/false to yes/no in grid view column?

Jan 18 2019 12:17 AM
Hi All,
I have one boolean column in grid view, which returns true/false. Instead of that I need to show yes/no.
  1. <asp:TemplateField HeaderText="Has Included">  
  2.         <ItemTemplate>  
  3.                    <asp:Label ID="l8" runat="server" Text='<%# Eval("hasIncluded") %>'></asp:Label>  
  4.         </ItemTemplate>    
  5. </asp:TemplateField>  
 

Answers (2)