Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1150
EditMode when binding model property to non-grid control
posted

Hello,

I have a collection of objects bound to a XamDataGrid.
The collection exposes the CurrentItem which is synchronized with the Grids current item.

The item class implements IEditableObject,
and the Undo and Database-Store operations are coded in the interfaces implementation.

One property (containing large text amounts) I need to bind to an external TextBox (not within the grid).
It is bound to MyModel.ItemCollection.CurrentItem.TextProperty

When I edit the item with the grid, the undo and storage operations work all well.
I even can edit the text in the external TextBox, but this will only be saved when I also edit any property on the current item in the grid.

What I want:
As soon I start typing in the TextBox, and the record was not in EditMode before,
the Grid should start into EditMode.
When I simply call Item.BeginEdit the Grid is not informed about this operation at all.

Is there a known solution for this situation?

Thank you.