Hello,
I would like to create a matrix of right in my wpf application.
Data are stored as following :
Functions ( idFunction, Name )
Persons ( idPerson, Firstname, Birthday )
Right ( #idPerson, #idFunction)
I would like to make windows to define who can access to x function
it should look like this :
My ViewModel have a ObservableCollection<Function>Functions and ObservableCollection<Person>Persons
I would like to bind :
- rows to Functions
- column to Persons
- the intersection of the 2 toRight...
I don't know how create something like that.
The rules are :
When i check the checkbox, i add record in my table (right).
When i uncheck the box i delete the record
I would like respect MVVM
Thanks for your help