Code:
<Grid>
<telerik:RadGridView x:Name="HierarchialGridView" AutoGenerateColumns="False">
<telerik:RadGridView.Columns>
<telerik:GridViewDataColumn DataMemberBinding="{Binding Id}" Header="Id" />
<telerik:GridViewDataColumn DataMemberBinding="{Binding Name}" Header="Name" />
</telerik:RadGridView.Columns>
</telerik:RadGridView>
</Grid>
Now default white color is displaying after double clicking a cell. How to achieve to change the background color of a cell when it is double clicked in XAML code ?
If you want to do it in xaml I think that you need at least to re-template the grid or the cell.
But if you are ok with a little code-behind:
MouseDoubleClick
event for the RadGridand then:
Edit:
Subscribe to the
PreparedCellForEdit
event and: