We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

"Windowless grid controls can''t have a window"

Thread ID:

Created:

Updated:

Platform:

Replies:

52741 Dec 4,2006 07:11 AM UTC Dec 6,2006 06:47 PM UTC WinForms 4
loading
Tags: GridControl
Eric Castillo
Asked On December 4, 2006 07:11 AM UTC

I am getting the following exception stack trace when clicking into a nested table cell then pressing the escape button. Am I missing something obvious? Note that this doesn't occur when clicking in a top level table cell.

Any guidance would be greatly appreciated. Thanks!

Eric

------------------------------------------------
************** Exception Text **************
System.NotSupportedException: Windowless grid controls can't have a window
at Syncfusion.Windows.Forms.Grid.GridControlBase.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at Syncfusion.Windows.Forms.ScrollControl.WndProc(Message& msg)
at Syncfusion.Windows.Forms.Grid.GridControlBase.WndProc(Message& msg)
at Syncfusion.Windows.Forms.Grid.Grouping.GridTableControl.WndProc(Message& msg)
at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2032
CodeBase: file:///c:/winnt/microsoft.net/framework/v1.1.4322/mscorlib.dll
----------------------------------------
Test
Assembly Version: 1.0.2406.39805
Win32 Version: 1.0.2406.39805
CodeBase: file:///C:/Documents%20and%20Settings/CONECC/Desktop/GridException/Test/bin/Debug/Test.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2032
CodeBase: file:///c:/winnt/assembly/gac/system.windows.forms/1.0.5000.0__b77a5c561934e089/system.windows.forms.dll
----------------------------------------
System
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2032
CodeBase: file:///c:/winnt/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll
----------------------------------------
System.Drawing
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2032
CodeBase: file:///c:/winnt/assembly/gac/system.drawing/1.0.5000.0__b03f5f7f11d50a3a/system.drawing.dll
----------------------------------------
System.Data
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2032
CodeBase: file:///c:/winnt/assembly/gac/system.data/1.0.5000.0__b77a5c561934e089/system.data.dll
----------------------------------------
System.Xml
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2032
CodeBase: file:///c:/winnt/assembly/gac/system.xml/1.0.5000.0__b77a5c561934e089/system.xml.dll
----------------------------------------
Syncfusion.Grid.Grouping.Windows
Assembly Version: 4.301.0.33
Win32 Version: 4.301.0.33
CodeBase: file:///c:/winnt/assembly/gac/syncfusion.grid.grouping.windows/4.301.0.33__3d67ed1f87d44c89/syncfusion.grid.grouping.windows.dll
----------------------------------------
Syncfusion.Grouping.Base
Assembly Version: 4.301.0.33
Win32 Version: 4.301.0.33
CodeBase: file:///c:/winnt/assembly/gac/syncfusion.grouping.base/4.301.0.33__3d67ed1f87d44c89/syncfusion.grouping.base.dll
----------------------------------------
Syncfusion.Core
Assembly Version: 4.301.0.33
Win32 Version: 4.301.0.33
CodeBase: file:///c:/winnt/assembly/gac/syncfusion.core/4.301.0.33__632609b4d040f6b4/syncfusion.core.dll
----------------------------------------
Syncfusion.Grid.Windows
Assembly Version: 4.301.0.33
Win32 Version: 4.301.0.33
CodeBase: file:///c:/winnt/assembly/gac/syncfusion.grid.windows/4.301.0.33__3d67ed1f87d44c89/syncfusion.grid.windows.dll
----------------------------------------
Syncfusion.Shared.Base
Assembly Version: 4.301.0.33
Win32 Version: 4.301.0.33
CodeBase: file:///c:/winnt/assembly/gac/syncfusion.shared.base/4.301.0.33__3d67ed1f87d44c89/syncfusion.shared.base.dll
----------------------------------------
Accessibility
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase: file:///c:/winnt/assembly/gac/accessibility/1.0.5000.0__b03f5f7f11d50a3a/accessibility.dll
----------------------------------------

************** JIT Debugging **************
To enable just in time (JIT) debugging, the config file for this
application or machine (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:





When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the machine
rather than being handled by this dialog.


Test56.zip

Administrator [Syncfusion]
Replied On December 4, 2006 10:01 AM UTC

Hi Conecc,

Please try this code to change the currentcell activation behavior when moving the current cell id clicking inside a cell.

gridGroupingControl1.TableModel.Options.ActivateCurrentCellBehavior = GridCellActivateAction.ClickOnCell;

Best Regards,
Haneef

Eric Castillo
Replied On December 5, 2006 05:23 PM UTC

But this isn't the behavior I would like; I actually want them to be editing the cell the moment they click.

Any other workarounds?

Thanks,

Eric

Administrator [Syncfusion]
Replied On December 6, 2006 06:56 AM UTC

Hi Eric,

This is a defect with the new EnableForwardCurrentCellControlKeyMessages behavior that was added recently to prevent key strokes being lost when you were navigating quickly across cells while doing time-consuming operations and repeatedly typing and the grid couldn’t keep up with it.

Please turn off the behavior by adding this line

this.gridGroupingControl1.TableControl.EnableForwardCurrentCellControlKeyMessages(false);

Best Regards,
Haneef

Eric Castillo
Replied On December 6, 2006 06:47 PM UTC

Thanks for your help! This did the trick!

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;