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: Force AddNewRecord row to be added to datasource

Thread ID:

Created:

Updated:

Platform:

Replies:

43881 May 5,2006 11:48 PM May 7,2006 10:44 PM Windows Forms 3
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On May 5, 2006 11:48 PM

Hi, I''m using a GGC which allow user to key in records through the AddNewRecord row. When the user click the save button after finish filling up the columns at the AddNewRecord row with out pressing the "ENTER" key, it won''t update the datasource. Is there anyway i can force the GGC to add the newly added record to the datasource without pressing the "ENTER" key. I''ve tried gridgroupingcontrol1.Table.EndEdit() and it doesn''t work. Thanks in advance :)

Administrator [Syncfusion]
Replied On May 6, 2006 08:20 PM

Hi Wye Jin, By default if you are editing an AddNew record and on clicking the button (unless the Button.CausesValidation is set to false), the data will be updated to the DataTable. Calling the Table.EndEdit() will take care of the issue. Also in addition to that try calling: this.gridGroupingControl1.Table.CurrentRecordManager.EndEdit(); I tried reproducing the similar behavior in the attached sample. You could see when the new record is added, changes are reflected in the other Grid which is bound to the same DataTable. Can you help us reproduce the issue in the sample? Also what version of the Grid are you using? Best regards, Jay forum_43881.zip

Administrator [Syncfusion]
Replied On May 6, 2006 08:21 PM


Administrator [Syncfusion]
Replied On May 7, 2006 10:44 PM

Thank you so much Jay!! It works!! :)

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.

;