In my silverlight application I use a datagrid. The item source is an ObservableCollection< Customer > The Customer object implements INotifyPropertyChanged. The problem is that from second to second I update all customers elapsed time. If I have in the grid 5000+ records this is a problem for performance.
Do you know if it is possible to have in silverlight something like:
_grid.SuspendLayout();
//update model
_grid.ResumeLayout();
… or suspend bindings.
Since I update only elapsed time column I would like to update only that column … not the whole grid. Does the datagrid support some event to receive a list of updates? In this case maybe I can think of implementing my custom ObservableCollection.
Have you tried using OneTime binding mode instead of TwoWay? If you use OneTime, you can decide to manually refresh the grid by saving changes on your context. You can also control edits using
grid.BeginEdit()andgrid.CommitEdit().