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

SfDataGrid CellCheckBoxClick event for after the click has been processed?

Thread ID:

Created:

Updated:

Platform:

Replies:

149616 Dec 3,2019 11:14 AM UTC Dec 6,2019 06:50 AM UTC WinForms 3
loading
Tags: SfDataGrid
Leigh Anderson
Asked On December 3, 2019 11:14 AM UTC

I have an SfDataGrid with a CheckBoxColumn mapped to a boolean field.
When the checkbox is clicked the CellCheckBoxClick event fires before the checkbox is ticked/unticked.
I want to call a function to count how many items are ticked, but CellCheckBoxClick happens too early.
Is there an event that is fired after the checkbox itself has been updated?
Is there another event I should use?
Thanks
Leigh

Gowtham Gopalsamy [Syncfusion]
Replied On December 4, 2019 11:31 AM UTC

Hi Leigh,   
    
Thanks for using Syncfusion controls.   
   
You can achieve your requirement to get the changed value in CheckBoxColumn by using View.RecordPropertyChanged  
   
Please find the below code snippet and sample link.  
   
this.sfDataGrid1.View.RecordPropertyChanged += View_RecordPropertyChanged;   
   
private void View_RecordPropertyChanged(object sender, PropertyChangedEventArgs e)   
{   
    var record = (sender as OrderInfo).IsClosed;   
   
    //You can customize here.   
}   
   
    
   
Please let us know, if you require further assistance on this.   
    
Regards,   
Gowtham.   


Leigh Anderson
Replied On December 5, 2019 10:29 AM UTC

Hi Gowtham

Thanks for the sample - I have been able to implement that in my app now.

Leigh

Farjana Parveen Ayubb [Syncfusion]
Replied On December 6, 2019 06:50 AM UTC

Hi Leigh, 
 
Thanks for the update. 
 
We are glad to know that the reported problem has been resolved at your end. Please let us know if you have any further queries on this. We are happy to help you. 
 
Regards, 
Farjana Parveen A 


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.

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