Hi,
I'm using XamDataGrid version 10.2. It seems that something is going wrong when using an elementhost and a XamDataGrid.
The problem is, when I move some grid fields, an CallbackOnCollectedDelegate occurs. The Delegate type is InfragisticsWPF4.v10.2!Infragistics.Windows.Helpers.NativeWindowMethods+HookProc::Invoke. I realized that after moving a column the first time, the Application.Exit event is fired (see breakpoint). That would explain the CallbackOnCollectedDelegate exception, which occurs after 2-3 times moving the column.
My test application has the following structure:
* App.xaml opens Form1 in function OnStartup.
* Form1 contains an elementhost with UserControl1
* UserControl1 contains a XamDataGrid
I'm not sure if this is a bug or a result of doing something wrong.
I would appreciate any help on this,
Thanks,
Gernot
Hi Stefan,
We also facing the same issue that mentioned above. Can you please provide us the reason why this is happening and possible solutions for it.
I am having the same problem in a new form where I am utilizing xamDataGrid. I can't really post the code since this is a part of a larger application.
I don't know if i can change the way that forms are created since as I've mentioned I am creating a new form in larger application. Can you explain a bit more about the reason for a problem and suggest a workaround?
Thank you
Timur
Hello Gernot,
It has been a while since you have made your post, in case you still need support I will be glad to assist you further. I suppose the other community members can benefit from this answer as well. So I have been looking through your post and I modified the sample you attached, so now it works as expected. Basically I change the place, where the instance of the Form is created and brought into view. Instead of in the Application started event I do this in the constructor of the MainWindow, immediately after the InitializedComponent method.
Feel free to write me if you have any other questions.