Click here to Skip to main content
11,790,366 members (58,454 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: ASP Ajax NET VBdotNET
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 BoundColumn.DataFormatString Property [^] 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 OriginalGriff 1,114
1 Maciej Los 825
2 KrunalRohit 686
3 CPallini 611
4 ppolymorphe 610

Advertise | Privacy | Mobile
Web04 | 2.8.1509028.1 | Last Updated 27 Jun 2012
Copyright © CodeProject, 1999-2015
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