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
close icon

How to customize a cell style

The cell value is some number,
I need to set the style of each cell based on the value range,
e.g. <0 set color red, =0 set color black, 1~50 set color green, >50 set color blue
How to do this?

1 Reply

FS Farveen Sulthana Thameeztheen Basha Syncfusion Team November 28, 2016 09:50 AM UTC

Hi Fred,   
 
 
Thank you for contacting Syncfusion support.   


 
 
Please use “queryCellInfo” event to customize the grid cell. We have already discussed about how to customize the cell using “queryCellInfo” in our Syncfusion Knowledge base, please find the KB in following link.   
 
 
 
  
 
 
Also, please refer to the API reference link for “queryCellInfo” event,  


 
 
   
 
 
Please check the online sample about conditional formatting using queryCellInfo event  


 
 
   
 
 
Regards,   


 
 
Farveen T.    
 


Loader.
Live Chat Icon For mobile
Up arrow icon