Just letting the ‘arrow down’ key makes the UI freeze too much for me.With the delay property set to a value of 500 milliseconds, I can easily navigate in the list with the keyboard. If you are using MVVM you do not want to wire up the event on Data Grid for an updated source.
Oh well, I solved the problem, so I'm all sorts of happy. This is more precise and understandable to me to say that a ‘Delay’ property has been added to the Binding markup extension !So, I have this WPF datagrid, and it's quite happy in the way it works. Some background, I'm not doing the base behavior for editing/adding, but rather have a separate control outside the grid which is responsible for that behavior (as it is also the control responsible for adding the initial element).But I was having a problem, and it was with the Grid's UI.A Binding performs synchronisation between two properties.
If and only if the binding is done in Two Way mode then the target is able to update the source value (the Text Block is able to update the View Model).Of course I blame it on the fact that I've spent too much time in the ASP.NET arena where I can force a data-rebinding by calling the Data Bind method of the object.And this was not just for Updates, but also for Inserts and Deletes. But, I wouldn't be here if I didn't have a solution. Invalidate UI command, as that's basically what I was trying to do: repaint the grid.What I wasn't doing with that was telling the Datagrid to look at the underlying datasource and refresh the UI from that. Yeah, I did feel a bit silly after finding that out.Again, it’s a discrete addition to the WPF framework but it’s a useful one !