locked
WPF DataGrid hierarcical data binding RRS feed

  • Question

  • Hi 

    I need to show this - http://pastebin.com/Gv7qg7na  data in a DataGrid so that: 

     - My DataGrid always should have two columns named "Column" and "Value"

     - If the data is simple (If the IsSimple is set to true) the "Value" column must show only the text value (The "Value" string).

     - If the data is a complex type (If the IsSimple is set to false) the second column (The Value column) must show another DataGrid.

    Simply, the "Value" column either can be a TextColumn or TemplateColumn.

    How can it be done with or without XAML (Would be better with XAML).




    Sunday, May 26, 2013 6:14 PM

Answers