Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1220
column numeric formatting without rounding
posted

Hello, 

is it possible to format a numeric columns decimal places w/out rounding? 

meaning, if i specify the format as #,###.0

12.69 will become 13

i want to take the floor of that instead which is 12. 

 

i don't think this is possible using format string, but i am interested in overriding formatter and than doing the floor rounding in c# 

 

Parents
No Data
Reply
  • 5739
    posted

    Hi,

    You can do the floor in the initializerow event.  You would get the orginal value in the event and send back the floored value to the grid.

    Ed

Children