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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Number Format not working with null value in column

Thread ID:





142911 Feb 25,2019 05:33 PM UTC Feb 26,2019 09:23 AM UTC ASP.NET MVC - EJ 2 1
Tags: Grid
Fabrizio Alessandro
Asked On February 25, 2019 05:33 PM UTC

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,

Thavasianand Sankaranarayanan [Syncfusion]
Replied On 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. 

Thavasianand S. 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon