I have a usercontrol with a master record (Project) and a radgridview with details (ProjectItems). Project & ProjectItems are observable collections (the details gridview is populated using LINQ Lamda Where of the master project ID). The projectitems are quite complicated.
I would like to have 1 edit button at the Project level that activates the BeginEdit IEditableObject Member on the Project record and the BeginEdit IEditableObject Members on ALL the related ProjectItems.
Then the user will be able to Commit or Cancel ALL the changes for the project and associated items by pressing a Save or Cancel button which will in turn run the EndEdit or CancelEdit IEditableObject Members on the Project and ALL related Project Items.
The problem I have is that the radgridview automatically calls the BeginEdit, EndEdit & CancelEdit IEditableObject Members so when the user edits an item as soon as they move off the row the change is comitted, pressing the cancel button has no effect.
Is there any way to tell the RadGridView NOT to automatically process the BeginEdit, EndEdit & CancelEdit IEditableObject Members on the underlying data?
I would like to have 1 edit button at the Project level that activates the BeginEdit IEditableObject Member on the Project record and the BeginEdit IEditableObject Members on ALL the related ProjectItems.
Then the user will be able to Commit or Cancel ALL the changes for the project and associated items by pressing a Save or Cancel button which will in turn run the EndEdit or CancelEdit IEditableObject Members on the Project and ALL related Project Items.
The problem I have is that the radgridview automatically calls the BeginEdit, EndEdit & CancelEdit IEditableObject Members so when the user edits an item as soon as they move off the row the change is comitted, pressing the cancel button has no effect.
Is there any way to tell the RadGridView NOT to automatically process the BeginEdit, EndEdit & CancelEdit IEditableObject Members on the underlying data?