Search This Blog

Tuesday, November 3, 2015

RadGridView WPF disable cell or row

WPF > RadGridView > Disable

<Style x:Key="disabledCell" TargetType="telerik:GridViewCell">
<Setter Property="IsEnabled" Value="False"/>
</Style>

<telerik:GridViewDataColumn 
        DataMemberBinding="{Binding Name}"
        CellStyle="{StaticResource disabledCell}"
/>


To disable all the rows you need to apply a Style targeting the GridViewRow element.

<Style TargetType="telerik:GridViewRow">
       <Setter Property="IsEnabled" Value="False"/>
</Style>