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

How to detect the user is adding a new record on the top New Line

Thread ID:





127410 Nov 14,2016 05:42 PM UTC Nov 17,2016 03:51 AM UTC WPF 3
Tags: SfDataGrid
Asked On November 14, 2016 05:42 PM UTC


I have a form with a datagrid inside it and a button to confirm the changes made by the user.
If the user adds a new record on the datagrid writing on the top row but he forgets to press the Return key to automatically add that record to the grid, if he clicks on the Save button, his changes (the added record) are lost.
Is there any way to solve this problem?

Is it possible to programmatically confirm the editing line if not confirmed with Return key by the user?
Or, in addition, is it possible to detect if the user is already adding a record before saving and close the form (with some datagrid property or method) ?

Thank you in advance.


Jai Ganesh S [Syncfusion]
Replied On November 16, 2016 02:17 AM UTC

Hi Silvio, 
We suspect that you want to add the add new row records programmatically. We already having a kb for this and please find this from below, 
If we misunderstood your requirement, please share the more details about your query. This would be more helpful for us to provide the prompt solution. 
Jai Ganesh S 

Replied On November 16, 2016 04:44 PM UTC

Thank you Ganesh. It has benn very helpful to me.

Jai Ganesh S [Syncfusion]
Replied On November 17, 2016 03:51 AM UTC

Hi Silvio,  
Thank you for the update. 
Please let us know if you need further assistance on this. 
Jai Ganesh S 


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