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
Add a method to your page class like this:
public string YesNo(bool active) { return active ? "Yes" : "No"; }
And then in your TemplateField you Bind using this method:
TemplateField
Bind
<%# YesNo(Active) %>