Currently, the default behavior of the RadGridView control is that when, for example, a cell is double-clicked, it can be edited by the user. This behavior can be observed when the cell has data as you have specified. Also, could you specify if any custom templates and styles are used to modify the cells of the data grid?
Regarding the observed behavior, I was only able to reproduce it when the AutoGenerateColumns property was set to False, and an additional GridViewDataColumn was added, without the DataMemberBinding property set.
This said if this is not the cause of it, could you modify the attached project so that the observed behavior would also be present in it?
Regarding the styles, you could subscribe to the PreparedCellForEdit event, which allows you to access the currently edited element through the event arguments. A style can be set onto this element, which will be applied when the cell is in edit mode. Regarding the color of the cell border, you could use the ChildrenOfTypeextension method and get the Border element with Name="BorderVisual" and set the BorderBrush color to the desired one. The following code snippets show a simple style defined in XAML, which is applied to the mentioned editable element, and the logic to change the border's color:
<!--Style to be used onto the edited cell--><Stylex:Key="textBoxNewStyle"TargetType="TextBox"><SetterProperty="BorderThickness"Value="3"/><SetterProperty="Padding"Value="10"/></Style>
privatevoidgridView_PreparedCellForEdit(object sender, GridViewPreparingCellForEditEventArgs e)
if (e.EditingElement is TextBox)
//Applied the newly defined style to the currently edited textbox
((TextBox)e.EditingElement).Style = Application.Current.MainWindow.Resources["textBoxNewStyle"] as Style;
//ChildrenOfType to get the BorderVisual Border and change its BorderBrush brush
((TextBox)e.EditingElement).ChildrenOfType<Border>().FirstOrDefault(x => x.Name == "BorderVisual").BorderBrush = Brushes.Orange;
That said, I have attached the mentioned sample project, that has this approach also implemented.