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.

add new record not populating foreign key

Thread ID:

Created:

Updated:

Platform:

Replies:

10590 Feb 5,2004 04:50 PM Feb 6,2004 03:58 AM Windows Forms 1
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On February 5, 2004 04:50 PM

Hi, I have a child grid that allows entry of new records. How can I have the linking field to the parent grid populated when a new record is entered? It won''t save the record otherwise. THanks

Administrator [Syncfusion]
Replied On February 6, 2004 03:58 AM

You can handle teh CurrentCellMoving event on each of the child grids. If you are moving to teh AddNew row, add a datarow to your childtable, and populate it th eway you need it so it satisfies the latest filter. Here is that sample back showing teh idea. Parent_Child_Child_DropDowns_5105.zip

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.

;