I have a DataGrid bound to a collection of ProductView objects that implement IEditableObject interface so DataGrid calls BeginEdit and EndEdit when the user edits some properties of the ProductView.
DataGrid has the RowDetailsTemplate with a TextBox bound to ShortDescription property of the ProductView object :
<DataGrid.RowDetailsTemplate><DataTemplate><TextBox Text="{Binding ShortDescription, Mode=TwoWay, UpdateSourceTrigger=LostFocus}" TextWrapping="Wrap" /></DataTemplate></DataGrid.RowDetailsTemplate>
When the user edits the text in the TextBox neither BeginEdit nor EndEdit are called on the ProductView object that is RowDetailsTemplate does not deal with IEditableObject at all.
So I have an impression that RowDetailsTemplate is intended for showing read only data, am I right?
Dmitriano http://developernote.com