I am trying to fill a DataGrid with a List<> of multiple objects. These objects all inherent from a baseclass. I am successful in showing the columns and rows in the DataGrid, however I only see the properties of the base class and not the properties of the child class.
Unfortunately I could not find much helpful information while searching the web. But I am still new to WPF and C# so maybe that’s the problem…
How can I get the DataGrid to show all of the properties, from both the base and child class?
EDIT:
I have a few classes(say A, B, C) that inherit from the BaseClass and I have a list of the type List<BaseClass> which house multiple objects of multiple types. I need to show all the different child classes in my DataGrid.
This works for me. I see Hello in first row and World in second.