JavaScript UI Libraries & Blazor Components Suite – Smart UI › Forums › Data Grid › cellsFormat "c2" round up › Reply To: cellsFormat "c2" round up
April 12, 2021 at 12:36 pm
#101695
yavordashew
Member
Hi Dark Beccio,
In order to achieve the functionality you want, the dataType column is recieving must be a number, but in your case its a string .
Also I have used this demo for testing:
https://www.htmlelements.com/demos/grid/column-formatting/
I have tested the grid with a column with cellsFormat: ‘c2’ and value as the one from your post and there is no rounding up of the value.
Please, do not hesitate to contact us if you have any additional questions.
Best regards,
Yavor Dashev
Smart UI Team
https://www.htmlelements.com/