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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Where is the CellValueChanged Event Handler for SfDataGrid?

Thread ID:





150657 Jan 15,2020 07:43 AM UTC Jan 17,2020 09:04 AM UTC WinForms 2
Tags: SfDataGrid
Asked On January 15, 2020 07:43 AM UTC


Where is the CellValueChanged Event Handler for SfDataGrid?

What I want to achieve is to update certain columns of that specific row in an Access database after a change has been made directly in the SfDataGrid. 

I will need to update the [Last Modified Date] of the row if [Name] is changed when directly making a change on the SfDataGrid.

I do not want to update [Last Modified Date] if nothing is changed. That's why I can't use CurrentCellEndEdit.

Any workarounds for this? Thank you so much in advance!

Replied On January 16, 2020 08:05 AM UTC

Even me having the same issues.. no cellvaluechanged event

Amal Raj U [Syncfusion]
Replied On January 17, 2020 09:04 AM UTC

Hi Hanson & Sulthan, 

Thanks for using Syncfusion products. 

SfDataGrid doesn’t has CellValueChanged event, instead it supports View.RecordPropertyChanged event that notifies the value changes in a record. 

The value of the specific column can be updated when the value of another column is modified using the ItemPropertiesProvider in View.RecordPropertyChanged event. Please make use of the below example. 

Code example: 
// Wires RecordPropertyChanged event to update "Last Modified Date" 
this.sfDataGrid1.View.RecordPropertyChanged += OnRecordPropertyChanged; 
private void OnRecordPropertyChanged(object sender, PropertyChangedEventArgs e) 
    if (e.PropertyName == "Name") 
        // Updates the "Last Modified Date" 
        this.sfDataGrid1.View.GetPropertyAccessProvider().SetValue(sender as DataRowView, "Last Modified Date", DateTime.Now); 
Amal Raj Umapathy Selvam. 


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

Live Chat Icon For mobile
Live Chat Icon