Yes/No in GridView
Hi,
I have a column YES/NO in Access Database.
This is being edited in Gridview, So It shows me a CheckBox in GridView.
Following is code :-
<Columns>
<asp:CommandField ShowEditButton="True" />
<asp:CheckBoxField DataField="ShortListed" SortExpression="ShortListed" />
<asp:TemplateField>
<ItemTemplate>
<asp:Label ID="Label5" runat="server" Text='<%# Eval("ShortListed", "{0}") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
</Columns>
I wanted to Display YES Or NO text in side of Checkbox, so i also inserted a "Label5", But this label shows the value TRUE or FALSE.
How to show YES / NO?
Thank You....!!
|