I have a DataGridTemplateColumn that uses a custom controll in the CellEditingTemplate.
The custom control consists of a Grid containing a TextBox and a Button.
The custom control also has a string dependency property, called "SelectedPath".
The TextBox Text dependency property in the TextBox is bound to the SelectedPath of the wrapping custom control.
The Button opens a folder browser, and when that is closed sets the dependency property "SelectedPath" to the folder browsed to.
The row item implements IEditableObject.
When the TextBox is edited, IEditableObject.EndEdit() is called when leaving the cell.
However, when setting the dependency property "SelectedPath" after clicking on the button, and browsing to a folder and clicking "OK", IEditableObject.EndEdit() is not called.
What is the simplest and most correct way of making sure IEditableObject.EndEdit() is called, when using the folder browser dialog?