How can I avoid empty rows in my DataGrid and collection?
Here is my Senario: I want a new row to be added to the collection only when the ENTER key is pressed. I want to be able to control the insertion of a new row so that I can insert the new row at the top. This works fine so far but what the InsertionRow does is actually not acceptable for my Project. It adds a new empty row to the collection each time the InsertionRow losts focus, and even if all the cells are empty. There should be a way to cancel the insertion of a new row without using the validation method. You might want to ask why? Because I would want the user to partially enter data and the click on another row or navigate some resources and comback to end edit by pressing the ENTER key.
If there is a way to achieve this, I would appreciate your kind response.
If its a bug, please let me know when a fix will be available.
Thanks.
I think personally that the InsertionRow should be controlled separately, It should not allow automatic insertion of a new data row without the user input such as ENTER, or at least provide a configurable behaviour through properties.