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. Image for the cookie policy date
close icon

Save all changed columns in one step

I need to save all the edited fields of a GridGroupingControl record when user change  the current row. 

The event:
RecordValueChanged(object sender, RecordValueChangedEventArgs e)
Is called on every single column changed...

Which is the best way to save a whole record in one step when user change row focus?


3 Replies

NK Neelakandan Kannan Syncfusion Team May 7, 2015 10:02 AM UTC

Hi Gian,

Thank you for your interest in Syncfusion products.

If you want to customize the need while changing the Row focus, you can use CurrentRecordChanged or CurrentRecordChanging event. This event will be triggered when you change the focus from one row to another. Please make use of below code,


Code Snippet:

//Triggering the event

this.gridGroupingControl1.RecordNavigationBar.CurrentRecordChanged += new Syncfusion.Windows.Forms.CurrentRecordChangedEventHandler(RecordNavigationBar_CurrentRecordChanged);

void RecordNavigationBar_CurrentRecordChanged(object sender, Syncfusion.Windows.Forms.CurrentRecordEventArgs e)

{


//Customize your need

MessageBox.Show("Row focus has been changed");

}


//Triggering the event

this.gridGroupingControl1.RecordNavigationBar.CurrentRecordChanging += new Syncfusion.Windows.Forms.CurrentRecordChangedEventHandler(RecordNavigationBar_CurrentRecordChanging);

void RecordNavigationBar_CurrentRecordChanging(object sender, Syncfusion.Windows.Forms.CurrentRecordEventArgs e)

{

//Customize your need

MessageBox.Show("Row focus is changing");

}

Please let me know if you have any concerns.

Regards,
Neelakandan



GI Gian May 7, 2015 12:17 PM UTC

Useful, thanks!


NK Neelakandan Kannan Syncfusion Team May 8, 2015 04:21 AM UTC

Hi Gian,

Thank you for your update.

We are glad to hear from you that your reported scenario has been achieved.

Please let us know if you need further assistance on this.

Regards,
Neelakandan.

Loader.
Live Chat Icon For mobile
Up arrow icon