I have a ASP.NET GridView with a column mapped to a boolean. I want do display \"Yes\"/\"No\" instead of \"True\"/\"False\". Well actually I want \"Ja\"/\"Nej\"
GridView
I use this code for VB:
<%#IIf(Boolean.Parse(Eval("Active").ToString()), "Yes", "No")%>
And this should work for C# (untested):
<%# (Boolean.Parse(Eval("Active").ToString())) ? "Yes" : "No" %>