Hi,
I have a private class that implements a public interface, and I've bound the RadGridView to a collection of the interface.
It seems like the RadGridView then attempts to cast the items to type Bar using reflection, which fails because Bar is a private class. Is there any way to tell the RadGridView that it should assume the items are of type IFoo instead of trying to cast them to Bar? If not, can this be supported in the next release?
I have a private class that implements a public interface, and I've bound the RadGridView to a collection of the interface.
public
interface
IFoo { ... }
private
class
Bar : IFoo { ... }
...
var items =
new
ObservableCollection<IFoo>();
items.Add(
new
Bar());
GridView.ItemsSource = items;
It seems like the RadGridView then attempts to cast the items to type Bar using reflection, which fails because Bar is a private class. Is there any way to tell the RadGridView that it should assume the items are of type IFoo instead of trying to cast them to Bar? If not, can this be supported in the next release?