Here’s the scenario:
- Two toolkit data grids, side-by-side
- Grid A is readonly and cannot be changed
- Grid B’s contents can be changed and saved using a save button under it
I need Grid A to stay the same until the user clicks the save button, regardless of any changes Grid B may or may not have. When I bind to the property below both grids change when Grid B changes. I want to avoid this.
What’s the best approach to do this? Both grids are currently binding to the below property:
public EntitySet<SomeEntity> SomeEntities
{
get { return _entity; }
set
{
if (_entity != value)
{
_entity= value;
OnPropertyChanged("SomePropertyChanged");
}
}
}
Got it to work by using a DataGridTemplateColumn with OneTime binding. For example,