Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

2 Dimensional array or matrix binding

$
0
0

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



Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>