I’m displaying a table in a Gridview. Some fields contain 0 and 1, but mean Yes and No. When displaying the table in a Gridview I would like to edit the 0's and 1's to show Yes or No.
Any suggestions on how this could work?
Thanks!
<asp:BoundField HeaderText="Gearchiveerd?" InsertVisible="false" DataField="BestellingGearchiveerd" SortExpression="BestellingGearchiveerd">
<ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
</asp:BoundField>
Gearchiveerd? = Header
BestellingGearchiveerd = column name
Please refer the below implementation. This might really help you.
Design
C# Code
VB Code
You can change the Yes and No as required. Hope this is helpful