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.

Disabling rows depending on value of a column

Thread ID:





112456 Sep 24,2013 04:00 AM Oct 4,2013 01:28 AM WPF 1
Tags: GridControl
Michael Brieler
Asked On September 24, 2013 04:00 AM

i would like to disable rows depending on the value of a column. With the standard DataGrid i can accomplish it like this:


<Style TargetType="DataGridRow">

<Setter Property="IsEnabled" Value="True" />


<DataTrigger Binding="{Binding Path=IsSelectable}" Value="False">


<Setter Property="IsEnabled" Value="False" />






Can anyone show me how i can do this with the GridDataControl?

Thanks for your help

Gobinath A [Syncfusion]
Replied On October 4, 2013 01:28 AM

Hi Michael,


Sorry for the delay in getting back to you.


We have analyzed your query and you can able to disable the rows depending on the values of a column by using the conditional format as below the code snippet.


Code snippet[XAML]:





    <syncfusion:GridDataCondition ColumnName="BoolProperty"


                                            Value="True" />



      <syncfusion:GridDataColumnStyle Background="LightBlue" Enabled="False" />





We have prepared a simple sample based on your requirement and please find the sample under the following location.


Sample: Conditional Format.zip


Please let us know if you have any queries.



Gobinath A



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.

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.