I am currently working on silverlight business application using MVVM architecture and EDM using Domainservice .
I want to implement functionality somewhat like,
- The Gridview should display the data in table.
- On selecting the row, details should be displayed in rowdetailstemplate with readonly mode.
- On Edit button click the DataForm should change its mode to editable.
- On Save or Cancel it should allow to commit or rollback resp. the data for current context and turn to readonly again.
- On delete button click, it should delete the current record
I have finished upto the 2 step and not getting how to switch between DafaForm modes using MVVM, by making use of buttons added below the DataForm in stackpanel.
Since I am at beginner stage any help would be appreciable.