I'm looking for easies way to create Listbox/ListView/ItemsControl where each item will be Grid's row.
I have simple tree structure (depth=3)
Group
-> Question1
->Answer11
->Answer12
-> Question2
->Answer21
->Answer22
->Answer23
and i'd like to present it as Table.
QUestion1 | Answer11 | Answer12 | -
Question2 | Answer21 | Answer22 | Answer23
As You can see number of columns is known at runtime. What is the easiest way to do that? I've tried mix ListView and GridView, but i had some problems with binding nested collection of answers to columns. Any other easy way to do that in XAML with MVVM?