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

GGC: ForeignKeyReference relation - troubles with adding new value

Thread ID:





49513 Sep 20,2006 01:48 PM UTC Sep 21,2006 11:15 AM UTC WinForms 1
Tags: GridControl
Konstantin Babiy
Asked On September 20, 2006 01:48 PM UTC

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
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 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.

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



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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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