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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to change entire row font color to "blue" when the certain column status is "done" and entire row font color to "red" when the certain column status is "withdrawn"

Thread ID:

Created:

Updated:

Platform:

Replies:

109175 Jun 2,2013 04:22 PM UTC Jun 4,2013 07:20 AM UTC WPF 1
loading
Tags: GridControl
Shwe
Asked On June 2, 2013 04:22 PM UTC

I am trying to add conditional formatting on the entire row font color to "blue" whenever certain column status is "done" and entire row font color to "red" when the certain column status is "withdrawn". This status is already checked in view model WPF. If the status is done, I set "isdone" to true and if the status is withdrawn, I set "iswithdrawn" to true. So How can  I change the entire row font color whenever certain column value in that row is done and withdrawn?

Thangapriya V [Syncfusion]
Replied On June 4, 2013 07:20 AM UTC

Hi Ei Shwe,

We have analyzed your query. You can achieve your requirement by using conditional format. You can refer the following code snippet for this.

Code snippet [XAML]:

<syncfusion:GridDataControl.ConditionalFormats>

                <syncfusion:GridDataConditionalFormat Name="condition">

                    <syncfusion:GridDataConditionalFormat.Style>

                        <syncfusion:GridDataStyleInfo Foreground="Blue" />

                    </syncfusion:GridDataConditionalFormat.Style>

                    <syncfusion:GridDataConditionalFormat.Conditions>

                        <syncfusion:GridDataCondition ColumnName="ProductName"

                                                      ConditionType="Equals"

                                                      Value="Samsung Mobile" />

                    </syncfusion:GridDataConditionalFormat.Conditions>

                </syncfusion:GridDataConditionalFormat>

</syncfusion:GridDataControl.ConditionalFormats>

 

 

We have prepared a sample based on this. And you can find the sample in the following location.

Please let us know if you have any queries.

Regards,

Thangapriya



GDC Sample_86229298.zip

CONFIRMATION

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.

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

;