GGC: ForeignKeyReference relation - troubles with adding new value

I am having some troubles using Grid Grouping Control, when a cell is referrenced onto other table with RelationKind = RelationKind.ForeignKeyReference

I set relationDescriptor.ChildTableDescriptor.AllowNew = true
and
relationDescriptor.ChildTableDescriptor.AllowEdit = true

I expect user to have an ability to add new record to a parent related table.

This behaves very strange in my application now: setting allowEdit to False makes dropDown table (which is in edit mode) disappear on my click.

I also had a situation (don''t know how I did it), when dropDown table doesn''t disappear and adding new field is edited, but after closing this table, application crashes with an exception:

System.ComponentModel.Win32Exception: Error creating window handle.
at System.Windows.Forms.NativeWindow.CreateHandle(CreateParams cp)
at System.Windows.Forms.Control.CreateHandle()
at System.Windows.Forms.Form.CreateHandle()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
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 System.Windows.Forms.MdiClient.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

I would appreciate any help to solve this problem.

1 Reply

AD Administrator Syncfusion Team September 21, 2006 11:15 AM UTC

Hi Konstantin,

I was not able to reprodue this problem here(Essential studio 4.2+windows XP SP3+ .Net FrameWork 1.1/2.0), please see the attached sample that works fine with the ForeignKeyReference in the grid.

Here is a sample.
http://www.syncfusion.com/Support/user/uploads/ForeignKeyReference_1fc8ffe2.zip

If this did not help, please update us with a sample project showing the problem.

Thanks,
Haneef

Loader.
Up arrow icon