Hi there,
since years and several versions of the NetAdvantage library my colleagues and I are experiencing a strange behavior which all of us costs a lot of time in total so that's the reason why I'm posting it now.
We have a lot of business classes that are responsible to exchange data with the database server. We are using the MS BindingSource to fill up the WinGrid with our business object's data which works great. Our problem is that WinGrid sometimes temporary looses the 'connection' to the data schema of the business object and when this is estrablished again all column arrangements including groups are lost. This is extremely annoying and time consuming because every time you've to start from scratch by setting it up newly in Visual Studio Designer. I've now written a class that handles that programmatically during FormLoad to overcome that.
For a long time I didn't know where this problem comes from but now I think I've at least a little glue. If I've opened a form containing a WinGrid in Visual Studio Designer, debug the application from Visual Studio with having the form still visible in Designer (the Visual Studio Tab with that form is selected), close the application then all columns in WinGrid disappear in Designer. If I start to design the WinGrid there is no Data Schema established thus I cannot do anything in the column arrangement overview. If I close the WinGrid Designer the Data Schema is established afterwards. When I'm lucky the column arrangements are still there but sometimes they are lost.
When I close the form in Designer after ending debugging the application and the re-open it again this works also fine. It seems that there is a problem when the form is open in the Designer when the debugging session is started and then ended. I’ve set NewBandLoadStyle and NewColumnStyle properties of WinGrid DisplayLayout to Hide but that didn’t change anything.
As I said at the beginning we do have this problem with all NetAdvantage libraries starting from 2007.3, with Visual Studio 2008 and 2010 running on Windows XP Professional 32bit and Windows 7 Professional 64bit.
I wonder, that no other people do have similar problems?
Regards, Wolfgang
Hello Wolfgang,
Thanks for attached sample. I was able to see your issue. Please give me a time for research. I`ll inform you when I have results.
Thanks again and Regards
Georgi
Hello Georgi,
thanks for your effort.
I've created a complete new test project built up similar as our real application using 12.1 but there it works like a charm. Fortunately I had another playground project which shows the faulty behavior even after upgrading from 11.2 to 12.1. I've tried to investigate what could be the difference between the two implementations but I think I'll leave that to you Infragistics experts :-) I've reduced that project to the minimum needed functionality but there are some controls on the form which are of no use but they should not influence the rest. The problem here is as soon as I start a debug session of the project out of Visual Studio, having the Form still opened in the designer I see the form changing it's layout to show only the group as depicted in picture below:
The application itself shows the persons in the UltraGrid correctly:
If I now close my application the Form in the VS Designer still shows the same layout as depicted in above picture. If I click on 'Start!' to design the UltraGrid it shows like having no data schema associated. Sometimes it recovers from that state if I click on Cancel button again but sometimes not.
I've zipped that mini project and hopefully you can reproduce the problem with that. I'm running VS 2010 Professional on Windows 7 Enterprise 64 bit with 8GB RAM but my experience is that it is not depending on that since I had it already with VS 2008 on Windows XP 32 bit.
I've had this same issue happen to me. Happened tonite using 12.1 CLR 4.0.
I've had it happen to me the way you describe and other times I come out of debug mode just fine.
I've also had it happen without going into debug mode. Seems to be rather random.
I don't have a fix for you, just wanted to let you know I've seen what you are describing.
I've been making backups of the designer file if I know I am going to be making a lot of changes.
I try to reproduce your issue in a small sample, using version 11.2, but without success. I follow provided steps from your post, but I could not reproduce the issue. I`m not sure what I miss. Could you please tell me what is your assemby`s CLR (CLR 2.0 / CLR 4.0) Are you able to send us sample that reproduce this issue. I`ll be glad to research it.
Thanks and Regards
Hi Georgi,
thanks for your reply. We are keeping the Infragistics libraries up to date, at the moment we are using 2011 Vol. 2 and what I wanted to mention with my posting is that we are experiencing that problem since we started our project with 2007.3 :-) We will update to 2012 Vol. 1 within the next week and I've ask our IT responsible to get us the keys for that version.