Click here to Skip to main content
15,896,154 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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

1 solution

Try to use BoundColumn.DataFormatString Property [^] if it helps.
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900