Lost Focus on DataGrid

Mar 12, 2009 at 10:12 AM

We are experiencing a problem. Maybe the behaviour of DataGrid control doesn't work as fine as we want. Why the default behaviour of DataGrid is to commit the edit changes when focusing any other window? What is the explanation for this? Is not only a question of how to surround this problem. It's about the philosophy of that. Why is so difficult to workaround this behaviour?

It is expectable a behaviour Excel alike: If you are editting a cell, and you change the focus to another window (for any purposes) the cell in Excel remains in Edit state whitout losing the focus, and what is more important, without commiting the changes to the underlying data binding.

So, my questions are two:

1. Why this is not the default behaviour (Excel alike)?
2. How to workaround the behaviour?

Many thanks in advance,


Note: We are using the January 2009 release of DataGrid