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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Issues with Conditional Formatting

Thread ID:





113622 Oct 2,2013 06:40 PM UTC Dec 10,2013 04:30 AM UTC WPF 3
Tags: GridControl
Asked On October 2, 2013 06:40 PM UTC

I'm using conditional formatting in the Syncfusion GridDataControl control to turn a row bold when a column value is set true. The GridDataControl is bound to an observable collection and each column is mapped accordingly. This works fine until the column "IsModified" is set to "IsHidden=true".
Column definition:

<syncfusion:GridDataVisibleColumn Width="5" IsReadOnly="True" HeaderText="IsModified" MappingName="IsModified" IsHidden="False"/>


<syncfusion:GridDataConditionalFormat Name="C1" >




<syncfusion:GridFontInfo FontWeight="Bold" />





<syncfusion:GridDataCondition ColumnName="IsModified" ConditionType="Equals" Value="true" />




I've a few observations:
* If the column "IsModified" is kept visible but width = 0, the conditional formatting doesn't work.
*I've tested it few times and everything works perfect until the time the "IsModified" column is viewable. Once  It's resized to 0 or set to hidden or even resized beyond the grid width , The column value is not updated and hence the conditional formatting doesn't work.
Note: There are other columns as well in the grid mapped to the Observable collection object properties and they work fine.
Can you please help?

Thangapriya V [Syncfusion]
Replied On October 15, 2013 04:02 AM UTC

Hi Subha,

We have tested the reported issue with our sample based on the code snippet provided. But we are unable to reproduce the issue. So could you please modify the sample to reproduce the issue and let us know your current product version? This would be helpful for further analysis. Please find the sample in the following location.

Please let us know if you have any queries.




Grzegorz Vaban
Replied On November 28, 2013 10:45 AM UTC


I'm experiencing the same issue: I'm trying to highlight some rows in GridDataControl based on NotifyPropertyChanged fired from my ViewModel ( based on some incoming background messages), but it only seems to work if ApplyStyleToColumn column is visible on grid, unfortunately that is an internal flag that I can't expose to my users.

The conditional formatting is applied to cells, when I scroll down and backs (thus forcing grid to redraw cells) I can see the change, it's just that they're no visible immediately after event is fired and that is what I need.

Saravanan M [Syncfusion]
Replied On December 10, 2013 04:30 AM UTC

Hi Vaban,

Sorry for delay causes,

We have tested with our sample. In this sample “IsSelected” column is hidden and applied to IsSelected column. So the style is applied for rows also. If you set ApplyStyleToColumn to  “IsSelected” style will be applied for IsSelected column only. This is the default behavior of Griddatacontrol. However we are unable to understand your query clearly.Could you please send more details regarding this issue and modified the sample(Previous update has the sample)based on your application and send the replication procedure with us? It would be helpful for further analysis.


Please let us know if you have any queries,






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