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

Disabling rows depending on value of a column

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

1 Reply

GA Gobinath A Syncfusion Team October 4, 2013 05:28 AM UTC

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


Live Chat Icon For mobile
Up arrow icon