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

Thread ID:

Created:

Updated:

Platform:

Replies:

43881 May 6,2006 03:48 AM UTC May 8,2006 02:44 AM UTC WinForms 3
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On May 6, 2006 03:48 AM UTC

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 7, 2006 12:20 AM UTC

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 7, 2006 12:21 AM UTC


Administrator [Syncfusion]
Replied On May 8, 2006 02:44 AM UTC

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.

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

;