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 auto-change the cell value when another cell's value is changed in the same row?

Thread ID:





118218 Feb 12,2015 10:06 AM UTC Mar 11,2015 08:05 PM UTC WinForms 4
Tags: GridGroupingControl
Yujin Wu
Asked On February 12, 2015 10:06 AM UTC

Hi Team,
I want to realize below feature:
1. There are 3 columns in grid which have number-format value; ( column1, column2, column3)
2. When value in column1 or column2 is changed, column3 should change too right now. (column3 = column1 - column2);
3. value-changed row should be got because we will update it into database.
Could you modify the code based on my demo. Appreciated for your helps.

Attachment: EditColumnInGridGroupingControl_c24db723.rar

Yujin Wu
Replied On February 13, 2015 07:58 AM UTC

Hi Team,
Any update?

Muthukumar Kalyanasundaram [Syncfusion]
Replied On February 14, 2015 05:04 AM UTC

Hi Yujin,


Thank you for your interest in Syncfusion products.


If you want to change the row value of column and update the value to datasource, please make use of below code to achieved your scenario.



for (int i = 3; i < this.gridGroupingControl1.TableModel.RowCount; i++) // i = 3 start row index


double c5 = (double)this.gridGroupingControl1.TableModel[i, 5].CellValue;

double c6 = (double)this.gridGroupingControl1.TableModel[i, 6].CellValue;

this.gridGroupingControl1.TableModel[i, 7].CellValue = c5 - c6;


gridGroupingControl1.DataSource = students;


Please let us know if you have any concerns.



Muthukumar K

Attachment: ColumnTriggerInGridGroupingControl_b0ce1ce6.zip

Yujin Wu
Replied On March 10, 2015 05:23 AM UTC

Hi Muthukumar,
It resolved my issue, appreciated for your support!

Solai A L [Syncfusion]
Replied On March 11, 2015 08:05 PM UTC

Hi Yujin,


Thank you for your update.


We are glad know that your issue has been resolved. Please let us know if you need any further assistance.



Thanks & Regards,





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