G
Guest
I'm trying to replace a user code in data column with user friendly text for
a GridView ItemTemplate as in:
Text='<%# Eval("LocationType")%> == "P" ? "Pickup" : "DropOff"'
However the value always displays "DropOff" as if the binding doesn't return
any P's but I know there are Ps in the rows I'm testing with.
LocationType is defined as char(1) in the table.
Any suggestion why this isn't working?
Thanks.
a GridView ItemTemplate as in:
Text='<%# Eval("LocationType")%> == "P" ? "Pickup" : "DropOff"'
However the value always displays "DropOff" as if the binding doesn't return
any P's but I know there are Ps in the rows I'm testing with.
LocationType is defined as char(1) in the table.
Any suggestion why this isn't working?
Thanks.