This question is locked. New answers and comments are not allowed.
Hi,
I have the following situation: I'm bindind the RadDataGrid.ItemsSource to an ObserableCollection, which is templated with the base class of my data objects:
This collection was filled before with concrete data objects like
whereas ConcreteItemModel derives from BaseItemModel.
When I'm now adding DataGridTextColumns to the RadDataGrid, only these column contents are being displayed, which are bound to base class properties (BaseItemModel). All Columns bound the properties of the derived class are not showing any content.
Using a DataGridTemplateColumn instead, it works. But in this case I would loose all build-in functionality (especially the filtering).
Any help or advise would be appreciated :-)
Many thanks in advance!
Ciao
Thomas
I have the following situation: I'm bindind the RadDataGrid.ItemsSource to an ObserableCollection, which is templated with the base class of my data objects:
ObservableCollection<BaseItemModel> myCollection = new ...This collection was filled before with concrete data objects like
myCollection.Add(new ConcreteItemModel())whereas ConcreteItemModel derives from BaseItemModel.
When I'm now adding DataGridTextColumns to the RadDataGrid, only these column contents are being displayed, which are bound to base class properties (BaseItemModel). All Columns bound the properties of the derived class are not showing any content.
Using a DataGridTemplateColumn instead, it works. But in this case I would loose all build-in functionality (especially the filtering).
Any help or advise would be appreciated :-)
Many thanks in advance!
Ciao
Thomas