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
975
formatting numbers in a grid
posted

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 ?

Parents
No Data
Reply
  • 7375
    Offline posted

    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.

    iggridformat.zip
Children
No Data