You can contact for any type of query related to asp.net, C#, MVC,WCF,Jquery and AngularJS Follow me on - GitHub - https://github.com/mesan21ster/ YouTube Channel - https://www.youtube.com/user/mesan21ster/ Site : - https://sites.google.com/view/4dotnet
Thursday, September 10, 2009
Convert Numbers with 2 decimal places in gridview Template field
Note:
if you are using template field in gridview and wants to convert number field in decimal places(2 and more places) just use Text='<%# Bind("Project_cost", "{0:N}") %>' in itemTemplate field.
It will convert your field values with 2 decimal places
like : your number is -44
after converting - 44.00
Same thing if you want to do with bound field use DataFormatString="{0:N}" in the required field
Keep visiting for more Information
sites.google.com/site/santo01org/
Best of luck
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment