Hi,
Were you able to resolve your issue?
Sincerely,
Valerie
Developer Support Engineer
Infragistics
www.infragistics.com/support
What you have is a valid scenario.
You have two options to achieve it:
1. Write an editor that works in the way you are expecting (not recomended)
2. Wrap your current collection and cancel the updating of the wrapped collection when the editor is in edit mode (that is easier to achieve and will achieve your scenario)
Thanks,
George
Hi George,
"You have a binding to the DataContext, so it will update the Grid when there is a change in the DataContext." - You are right. It is default behavior. But I need to suppress/forbid update cell which is in edit mode.
The sample which I've attached does not work as expected. It rewrites cell value which is in edit mode if there is a change in the DataContext.
I want to reach following scenario:
1. User set cell in edit mode and type new value into cell(stay cell in edit mode).
2. Cell displays user typed value if there is a change in the DataContext for this cell.
3. User press "Enter" key to leave edit mode and apply typed value(update DataContext) or press "Escape" key to leave edit mode and apply change from the DataContext for this cell.
Is it clear? Do you have an idea?
Thank you.
I guess I don't understand what you are trying to achieve.
You have a binding to the DataContext, so it will update the Grid when there is a change in the DataContext.
IMO you have to stop the updating of the DataContext.
As for the sample you said that it's working as expected in the sample that I provided.
I've attached example in first comment. The logic for updating data(DataContext) works us expected. I need to setup xamDataGrid. By default cell in edit displays updated value when data(DataContext) was updated. But I need suppress to update value of cell when cell is in edit mode despite the fact that data has been modified.
I am waiting for your feedback.