Please kindky share the exact problem with more details, what do you mean by “not working”? The syntax seems to be correct. it would be better if you can make sure the name in the data source is indeed current_value, and it can be displayed as a currency.
Best Regards,
Ming Xu.
Please mark the replies as answers if they help or unmark if not.
Feedback to us
chandan777
Member
190 Points
261 Posts
formatting string in Eval
May 01, 2012 06:13 AM|LINK
hi
i want to format string in gridview like this
DataBinder.Eval(Container.DataItem,"current_value","{0:c}")
but its not working
any help?
eval currency string
praseTech
Member
198 Points
51 Posts
Re: formatting string in Eval
May 01, 2012 06:26 AM|LINK
check these links
http://msdn.microsoft.com/en-us/library/2d76z3ck.aspx
http://forums.asp.net/p/1080564/2539902.aspx
Ming Xu - MS...
All-Star
25269 Points
2235 Posts
Microsoft
Re: formatting string in Eval
May 02, 2012 08:32 AM|LINK
Hi,
Please kindky share the exact problem with more details, what do you mean by “not working”? The syntax seems to be correct. it would be better if you can make sure the name in the data source is indeed current_value, and it can be displayed as a currency.
Best Regards,
Ming Xu.
Feedback to us
Develop and promote your apps in Windows Store