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
1965
Problem with Formatting a column to have "$"
posted

Hi All,

I am trying to format a column in win grid to have "$" format in the way i have done earlier.

 But i cant get it in the form when i run it.

In initialize layout, i am using

 

e.Layout.Bands[0].Columns[

"Coverage_Amount"].Format = "$#,##0.00";  -- working

e.Layout.Bands[0].Columns[

"FP_Property_Limit"].Format = "$#,##0.00"; -- Not working

Second one is not working. both are editable. i tried using "c" also.

can any one help me out.

Regards,

Parthiban S

Parents
  • 469350
    Offline posted

    There are only two reasons for this that I can think of.

    1) Something else in your code is changing the format property for the FP_Property_Limit column after the line of code here is executed.

    2) The DataType of the FP_Property_Limit column doesn't support formatting. Are these two columns the same DataType. Is FP_Property_Limit a string?

Reply Children