I want to format the numbers displayed in my grid, so I have this in the column definitions for numbers
.DataType("number").Format("{0:0.00}");
but my grid is displaying this
44,550.5
44,640
43,486.2
I want the numbers to display like this
44,550.50
44,640.00
43,486.20
why wont my formatting work ?
Hello Mark,
As per your requirement the format of the number column should be like this :
.DataType("number").Format("0.00");
Modify your code with this format.
I have also created a sample application to test the same scenario.
Please find the attached sample and let me know if you need further assistance.