diff --git a/src/Avalonia.Controls.TreeDataGrid/Models/TreeDataGrid/TextCell.cs b/src/Avalonia.Controls.TreeDataGrid/Models/TreeDataGrid/TextCell.cs index 18afebe8..b1881d23 100644 --- a/src/Avalonia.Controls.TreeDataGrid/Models/TreeDataGrid/TextCell.cs +++ b/src/Avalonia.Controls.TreeDataGrid/Models/TreeDataGrid/TextCell.cs @@ -92,8 +92,8 @@ public void BeginEdit() { if (!_isEditing && !IsReadOnly) { - _isEditing = true; _editText = Text; + _isEditing = true; } } @@ -103,6 +103,7 @@ public void CancelEdit() { _isEditing = false; _editText = null; + RaisePropertyChanged(nameof(Value)); } } @@ -114,6 +115,7 @@ public void EndEdit() _isEditing = false; _editText = null; Text = text; + RaisePropertyChanged(nameof(Value)); } }