I'm currently trying to implement page with CRUD operations for Entity.
Let's imagine we have model called User with properties:
Name,
Surname,
Age,
IsMarried,
HomeAdress.
I'm going to show all those fields in DataGrid on UserInfoView. The grid should support inline adding and editing.
I started from this example:
and in my UserInfoViewModel I have property UserCollection of type EntityCollectionView bound to DataGrid.ItemsSource.
In case I'm adding new item into UserCollection in my grid corresponding item is showing in the bottom of the grid, is there some way to show it in the top of the grid ?
Also is there some way to immediately enter into edit state for newly added row. (Currently newly added row is selected but it is not in edit state.)