In a GridView, how to show in a boolean BoundField
value from resources for each value (true, false).
For example: If the value is true
开发者_如何学Go then show "Value a" (from resources) else then show "Value B".
Better to make it Template field and then do like...
<asp:Label ID="lbl" runat="server" <%# Eval("ColumnName") == true ?
Resources.GlobalRes.KeyNameA :
Resources.GlobalRes.KeyNameB %> ></asp:Label>
精彩评论