Hi,
I created a TabControl, and each tab in the tabControl uses an instance of a usercontrol(called GridView) which contains a PivotGrid.
My UserControl has a function PopulateGrid(FlatDataSource fds) which does what the name indicates.
When I create the first tab (User control is instantialted, and populateGrid is called) I have no problem. But when I create a second tab, I get the following exception during instantiation of the UserControl
This is easy to replicate. Please report this as a bug and let me know if I can workaround this in any way.
Thanks
Sangeetha
Hi Elena,
I upgraded WPF11.2 to service release 2125. Now the problem is the same, that is, I cannot create multiple instances of my object. But the exception is different. Here it is
I tried creating a test project, but can't seem to trap what caused this. Why is it looking for resources.dll? This only happens if I set the datasource in the first instance.
Hello Sangeetha,
Would you please provide us with a small sample where this issue is reproducible, so we can continue investigating this.
Thanks in advance.
Sincerely,
Elena
Developer Support Engineer
Infragistics, Inc.
www.infragistics.com/support
Hi Plamen,
Yes I create the FlatDataSource from DataTable and set it to PivotGrid.DataSource. Just this one line.
The weird thing about it is, when this is executed in the first instance there is no problem, but when I create another instance, I get the above exception although I do not execute PopulateGrid(...) in the second instance.
Do you create your items source inside PopulateGrid(CreateFlatDataSource) method? Also how this IEnumerable is created? What I see in the call stack is that this exception occurs somewhere in your code.
Plamen.
Just wanted to mention... When I comment out PopulateGrid(CreateFlatDataSource) it allows me to create multiple instances of the user control. But when I call this function in an instance, I cannot create any more instances. So it all has to do with creating FlatDataSource.