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
265
Why I couldn't change the display format of number?
posted

I use the code below to change the display format of one column so the decimal only display two numbers after the dot, but it didn't work. I also use the design models to set the format property of one column, again, it didn't work. Is there any reason? 

ultraGridZYYWSR.DisplayLayout.Bands[0].Columns["percent"].Format = "##0.###";

  • 280
    posted

    Hi there,

    use the following: 

    ultraGridZYYWSR.DisplayLayout.Bands[0].Columns["percent"].Format ="#,#0.#0";

    Hope that helped

    Nassos