Hi Admin,
I did some search in this forum and it seemed that no similar topic has been post.
I have an ObservableCollection<AbstractEntity> which contains some derived class instances such as CustomerEntity and EmployeeEntity. Binding this collection to a RadGridView ItemsSource is ok. Data is displayed correctly.
I want to apply some filters, such as showing CustomerEntity or EmployeeEntity only. So I defined a ListCollectionView like this:
then bind the RadGridView ItemsSource to this ListCollectionView, and apply the filters to the ListCollectionView.
The filters work fine. But I found whenever there are multiple derived types of instances in the collection, the RadGridView shows the rows but the content in all the cells are empty.
I checked the output and did not see any GUI exception.
Is it a known issue? Is there any solution for this?
Thanks,
Stephen
I did some search in this forum and it seemed that no similar topic has been post.
I have an ObservableCollection<AbstractEntity> which contains some derived class instances such as CustomerEntity and EmployeeEntity. Binding this collection to a RadGridView ItemsSource is ok. Data is displayed correctly.
I want to apply some filters, such as showing CustomerEntity or EmployeeEntity only. So I defined a ListCollectionView like this:
var peopleCollectionView = (ListCollectionView)CollectionViewSource.GetDefaultView(
this
.People);
then bind the RadGridView ItemsSource to this ListCollectionView, and apply the filters to the ListCollectionView.
The filters work fine. But I found whenever there are multiple derived types of instances in the collection, the RadGridView shows the rows but the content in all the cells are empty.
I checked the output and did not see any GUI exception.
Is it a known issue? Is there any solution for this?
Thanks,
Stephen