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

cell background color without using QueryCellStyle

Hi, is is possible to set a cell background color without using QueryCellStyle

Something like SetCellBackgroundColor(column,row)

Thanks

1 Reply

JN Jayaleshwari N Syncfusion Team January 9, 2019 05:40 AM UTC

Hi Helenharry, 
 
Thanks for contacting Syncfusion Support. 
 
We have checked the reported query “cell background color without using QueryCellStyle” from our side. We would like to let you know that SfDataGrid is designed based on column-oriented architecture and it is not a cell-based grid. It is impossible to change the back color of any specific cell in SfDataGrid without using QueryCellStyle event. 
 
However you can achieve your requirement by maintaining RowColumIndex in dictionary and apply background color to particular cell in QueryCellStyle event by invalidating the particular cell. You can refer the following forum to achieve your requirement. 
 
 
Please let us know if you would require further assistance. 
 
Regards,
Jayaleshwari N
 


Loader.
Live Chat Icon For mobile
Up arrow icon