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
230
Javascript error on Editing column cell with dataformastring applied
posted

We have applied dataformat string to column to change the display cell value for negative number to be represented as (123)

column1.DataFormatString ="{0:#,##0.00;(#,##0.00);0.00}";

the display of column works fine. But when cell is edited for which DataFormatString is applied Javascript error is thrown.

Microsoft JScript runtime error: Sys.FormatException: Format specifier was invalid.

Can you please help to apply Format string for displaying negative numbers.