Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
See more: ASP Ajax NET VB>NET
Hi to all, I have a web application that uses Gridviews to display currency data; it also saves said data to a sql database to be used later on. All data is used to work out new data so i need the decimal places to be saved no matter the length to the database, which is fine. Now my problem is i don't want to display said data to 10 decimal places in some cases. I would like to round off when displayed, but have the actual amount, decimal places and all, still in the Gridview (in case of a new save), kind of like an excel cell.
I don’t know if this is at all possible, if not does anyone have another solution for me?
Any help would be much appreciated. Thanks
Posted 27-Jun-12 2:46am

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Try to use ^] if it helps.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 480
1 mhegazy94 460
2 Ravi Bhavnani 190
3 Kornfeld Eliyahu Peter 185
4 Shemeemsha RA 160
0 Sergey Alexandrovich Kryukov 7,135
1 OriginalGriff 6,801
2 CPallini 5,350
3 George Jonsson 3,619
4 Gihan Liyanage 2,797

Advertise | Privacy | Mobile
Web02 | 2.8.140922.1 | Last Updated 27 Jun 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100