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

cell background color without using QueryCellStyle

Thread ID:





141871 Jan 9,2019 01:41 AM UTC Jan 9,2019 05:40 AM UTC WinForms 1
Tags: SfDataGrid
Asked On January 9, 2019 01:41 AM UTC

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

Something like SetCellBackgroundColor(column,row)


Jayaleshwari N [Syncfusion]
Replied On 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. 
Jayaleshwari N


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