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.

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

Thread ID:

Created:

Updated:

Platform:

Replies:

127410 Nov 14,2016 12:42 PM Nov 16,2016 10:51 PM WPF 3
loading
Tags: SfDataGrid
Silvio
Asked On November 14, 2016 12:42 PM

Hi,

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.

Silvio

Jai Ganesh S [Syncfusion]
Replied On November 15, 2016 09:17 PM

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. 
Regards, 
Jai Ganesh S 


Silvio
Replied On November 16, 2016 11:44 AM

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

Jai Ganesh S [Syncfusion]
Replied On November 16, 2016 10:51 PM

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


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.

;