Can I convert a boolean to Yes/No in a ASP.NET GridView

前端 未结 9 1301
孤街浪徒
孤街浪徒 2020-12-22 17:17

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\"

9条回答
  •  清酒与你
    2020-12-22 17:48

    It's easy with Format()-Function

    Format(aBoolean, "YES/NO")
    

    Please find details here: https://msdn.microsoft.com/en-us/library/aa241719(v=vs.60).aspx

提交回复
热议问题