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.
Unfortunately, activation email could not send to your email. Please try again.

GGC: ForeignKeyReference relation - troubles with adding new value

Thread ID:

Created:

Updated:

Platform:

Replies:

49513 Sep 20,2006 09:48 AM Sep 21,2006 07:15 AM Windows Forms 1
loading
Tags: GridControl
Konstantin Babiy
Asked On September 20, 2006 09:48 AM

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.

Administrator [Syncfusion]
Replied On September 21, 2006 07:15 AM

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

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.

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.

;