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

Grid cell empty when Zero

Dear Team,

I want grid cell empty when Zero without ValueAccessor and should be handle decimalplaces also.


Nagendra Gupta

1 Reply

VB Vinitha Balasubramanian Syncfusion Team March 6, 2023 07:54 PM UTC

Hi Nagendra,

Greetings from Syncfusion support.

Query: Grid cell empty when zero.

Based on your request, we understand that you want to show empty cells in the grid which have zero values. You can achieve this is by changing the zero value to null or undefined using the queryCellInfo event of the Grid component. Here is an example of the code we implemented:


queryCellInfo(args) {

    if (args.data.symbolId === 0) {

      args.data.symbolId = undefined;



Sample: https://stackblitz.com/edit/angular-nwmzxn?file=src%2Fapp.component.ts

API: https://ej2.syncfusion.com/angular/documentation/api/grid/#querycellinfo


Vinitha Balasubramanian

If this post is helpful, please consider Accepting it as the solution so that other members can locate it more quickly.

Live Chat Icon For mobile
Up arrow icon