BirnBaumBlüte BirnBaumBlüte - 1 year ago 184 Question

Style background of Cell in EditMode in RadGridView

I want to style a cell in a RadGridView so whenever the cell turns into edit mode the backgroundcolor is e.g. yellow.

<telerik:RadGridView x:Name="Name" SelectionUnit="Cell">
<Style TargetType="telerik:GridViewCell">
<Trigger Property="IsInEditMode" Value="True">
<Setter Property="Background" Value="Yellow"/>

This doesn't do anything.

Answer Source

In the telerik:RadGridView try:

        <Style TargetType="{x:Type TextBox}">
            <Setter Property="Background" Value="LightYellow"/>

It changes the backgroundcolor of each selected-to-edit Cell to lightyellow.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download