Hello,
Here is my case:
I'm working in MVVM.
In my ViewModel I have a list of object like this one :
public class MyObject
{
public string Name { get; set; }
public Dictionary<string,bool> Options
{
get;
set;
}
}
In my View I want to bind my datagrid to a the list of MyObject and have a display looks like :
Name | Option1 | Option2 | Option3 | ...
Object1Name | true |false |true
Object2Name | true |true |true
...
The bool should be a checkBox
The string is well displayed but I dont know how display the Dictionary.
I hope someone can help me with this issue.
Thanks,
Eric.
PS : Sorry for the faults but English is not my mother tongue.
Here is my case:
I'm working in MVVM.
In my ViewModel I have a list of object like this one :
public class MyObject
{
public string Name { get; set; }
public Dictionary<string,bool> Options
{
get;
set;
}
}
In my View I want to bind my datagrid to a the list of MyObject and have a display looks like :
Name | Option1 | Option2 | Option3 | ...
Object1Name | true |false |true
Object2Name | true |true |true
...
The bool should be a checkBox
The string is well displayed but I dont know how display the Dictionary.
I hope someone can help me with this issue.
Thanks,
Eric.
PS : Sorry for the faults but English is not my mother tongue.