c# - Style background of Cell in EditMode in RadGridView -
i want style cell in radgridview whenever cell turns edit mode backgroundcolor e.g. yellow.
<telerik:radgridview x:name="name" selectionunit="cell"> <telerik:radgridview.resources> <style targettype="telerik:gridviewcell"> <style.triggers> <trigger property="isineditmode" value="true"> <setter property="background" value="yellow"/> </trigger> </style.triggers> </style> </telerik:radgridview.resources> </telerik:radgridview>
this doesn't anything.
as mentioned in comments, gridviewcell
, when editable, displays textbox
consumes entire space gridviewcell
has available; setting background of gridviewcell
nothing, because can't see background of gridviewcell
. solution change background of control displayed while gridviewcell
editable, need change background
of textbox
.
in radgridview
following:
<telerik:radgridview.resources> <style targettype="{x:type textbox}"> <setter property="background" value="lightyellow"/> </style> </telerik:radgridview.resources>
it changes background color of each selected-to-edit cell lightyellow
.
Comments
Post a Comment