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

How to disable edit GridCheckBoxColumn cell?

Thread ID:





145351 Jun 18,2019 01:04 PM UTC Jun 19,2019 11:03 AM UTC WPF 1
Tags: SfDataGrid
Ondrej Svoboda
Asked On June 18, 2019 01:04 PM UTC

But this doesn't work for GridCheckBoxColumn (CurrentCellBeginEdit is not fired). Is there a way how to implement it for this column type?

Ondra Svoboda

Jagadeesan Pichaimuthu [Syncfusion]
Replied On June 19, 2019 11:03 AM UTC

Hi Ondrej, 
Thank you for using Syncfusion controls. 
By default, editing related events is not triggered for GridCheckBoxColumn in SfDataGrid, so you can achieve your requirement “Disable editing cells and change their background color” by using converter in GridTemplateColumn with CheckBox. 
Please refer the below code example 
<syncfusion:GridTemplateColumn MappingName="Conformed"> 
            <CheckBox IsChecked="{Binding Conformed}"  
                      IsEnabled="{Binding Conformed, Converter={StaticResourcecheckBoxConverter}}" /> 
        <Style TargetType="syncfusion:GridCell"> 
            <Setter Property="Background" Value="{Binding Conformed, Converter = {StaticResource cellbackgroundconverter}}" /> 
public class CheckBoxConverter : IValueConverter 
    public object Convert(object value, Type targetType, object parameter,CultureInfo culture) 
        if (value == null) 
            return false; 
        return true; 
    public object ConvertBack(object value, Type targetType, object parameter,CultureInfo culture) 
        throw new NotImplementedException(); 
Let us know whether this helps also if you need any further assistance on this. 


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