I have a listview, which displays a list of administrators, this list is held within a gridview, and each column has a edit button bound to the object.
Below this I have a seperate view, which is used to edit/create new administrators, what I want to do is bind the controls of this view to the Administrator selected in the Listview when the user clicks the edit button. I can get this working(ish) by populating the edit buttons tag property and casting to the relevant object in the code behind, however this doesnt follow the mvvm pattern does any one have any suggestions how I could do this using the mvvm pattern?
The view models I have are; AllAdministrators and Administrator
Thanks in advance