We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Number Format not working with null value in column

Hello,
I have a question about Grid in ASP.NET MVC,

I have a column with "C2" format and a decimal? value associated, when all rows of that column have effectively a value all is fine, but when at least in a row there is a null decimal? all rows are displayed without the formattation, as a standard number.

Thank you,
Fabrizio

1 Reply

TS Thavasianand Sankaranarayanan Syncfusion Team February 26, 2019 09:23 AM UTC

Hi Fabrizio, 

Greetings from Syncfusion. 

Based on your query we found that you have null values for a number column in Grid also null values set for a first record in Grid. By default columns type will be set based on the first record values in Grid if we are not set the type manually. This is the root cause of your issue. So, we suggest you to set type as “number” for those column in Grid. 

Please let us know if you need further assistance on this. 

Regards, 
Thavasianand S. 


Loader.
Live Chat Icon For mobile
Up arrow icon