Hey all,
I have an issue and I'm not sure what the cause is. I have 2 different Contact object, companies and persons. They both inherit from the interface IContact. So naturally I decided to bind my Gridview to an observableCollection of IContact. This all works fine except that it makes the gridview extremely slow. Whenever I scroll down it takes ages to load the rows. I tried it with just an observablecollection of contactcompany and contactperson and that worked just fine, so the problem only occurs while binding to an interface.
Does anyone know the cause of this? Is there any way to solve this? I created a temporary fix by creating an "in-between" class that has the properties I want to show in the gridview and filling it with both contactcompany and contactperson data, however this solution is less than ideal because it requires a lot of memory and it's really more of a work-around.
If anyone can shed some light on this it'd be great, thanks.
Kind regards
I have an issue and I'm not sure what the cause is. I have 2 different Contact object, companies and persons. They both inherit from the interface IContact. So naturally I decided to bind my Gridview to an observableCollection of IContact. This all works fine except that it makes the gridview extremely slow. Whenever I scroll down it takes ages to load the rows. I tried it with just an observablecollection of contactcompany and contactperson and that worked just fine, so the problem only occurs while binding to an interface.
Does anyone know the cause of this? Is there any way to solve this? I created a temporary fix by creating an "in-between" class that has the properties I want to show in the gridview and filling it with both contactcompany and contactperson data, however this solution is less than ideal because it requires a lot of memory and it's really more of a work-around.
If anyone can shed some light on this it'd be great, thanks.
Kind regards