PE
Patrick El-Azem
March 28, 2006 05:26 PM UTC
OK, I isolated the cause of the strange behavior.
In my above scenario, the parent form had TopMost set to True. Therefore, the child form was also TopMost = True.
Changing this to False on the parent form and recompiling resulted in the GDBG combox working!!!
I also tested having the parent TopMost = False and the inherited (child) form TopMost = True. This broke the GDBG combobox again.
Back to False, and yes, it worked.
Finally, I tested this on a non-inherited, non-parent (i.e. totally vanilla, no other controls, new project, etc.) form: indeed, setting TopMost = True on a form with only a GDBG control with a combobox column BREAKS the combobox.
During all these headaches (the documentation, KB, FAQ, etc. were of no help in any of this, in fact the docs imho could use a total reorganization and rewrite, they have been so painful for me anyway to use to get started and just display data...) I also had several VS2005 hangs (again, vanilla project etc.) and event log entries like this one...
.NET Runtime version 2.0.50727.42 - Fatal Execution Engine Error (7A2B45A2) (0)
For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
I am using the latest version of EssentialGrid as of this writing.
AD
Administrator
Syncfusion Team
March 31, 2006 04:00 AM UTC
Hi Patrick,
The combobox uses special code that will show the combobox on top of a grid without flickering the title bar of the application and without ever giving focus to the listbox and the scrollbars in the dropdown.
If the form itself is already .TopMost then the only way to be in the z-order before the Form is to also use .TopMost. Setting .TopMost however for the dropdown itsself will result in giving focus to the combobox, the parent form title bar flashing. Also some code in the combobox would need to be changed to support that.
So the easiest is to set the .TopMost flag = false while the combobox is shown and set it back to true once you hide the combobox.
For more details, See.
http://www.syncfusion.com/Support/user/uploads/ComboBox_ad31842b.zip
Please let me know if you need any further assistance.
Thanks for your patience.
Regards,
Haneef