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.
Syncfusion Feedback

Save all changed columns in one step

Thread ID:

Created:

Updated:

Platform:

Replies:

119016 May 5,2015 02:02 PM UTC May 8,2015 04:21 AM UTC Windows Forms 3
loading
Tags: GridGroupingControl
Gian
Asked On May 5, 2015 02:02 PM UTC

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?


Neelakandan Kannan [Syncfusion]
Replied On 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


Gian
Replied On May 7, 2015 12:17 PM UTC

Useful, thanks!

Neelakandan Kannan [Syncfusion]
Replied On 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.

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

;