I have Grid
I want to use MVVM template, at creation of new record and editing of existing record. A template I start from Grid.
At start of the form from a template the data from a line Grid should be loaded. After editing of the form the data remains in a database.
How to obtain the data from row of Grid and to initialize ViewModel?
How to transfer the data in the controller for preservation?