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


Thread ID:





141008 Nov 19,2018 03:31 AM UTC Nov 20,2018 09:07 AM UTC WinForms 3
Tags: SfDataGrid
Asked On November 19, 2018 03:31 AM UTC

Hi, is it possible to make a row readonly?

Deivaselvan Y [Syncfusion]
Replied On November 19, 2018 05:33 AM UTC

Hi Chris, 

Thanks for contacting Syncfusion support. 

You can make any specific row readonly by cancelling the CurrentCellBeginEdit event for the corresponding row. Please refer to the following code example and sample from the given location. 

Code Example:  

this.sfDataGrid.CurrentCellBeginEdit += sfDataGrid_CurrentCellBeginEdit; 

void sfDataGrid_CurrentCellBeginEdit(object sender, Syncfusion.WinForms.DataGrid.Events.CurrentCellBeginEditEventArgs e) 
    if ((e.DataRow.RowData as OrderInfo).OrderID == 10002) 
        e.Cancel = true; 

Refer the below documentation for more details on cancel cell editing and disable the row selection  


Replied On November 19, 2018 06:06 AM UTC

Thanks, is it possible to override CurrentCellBeginEdit?

Deivaselvan Y [Syncfusion]
Replied On November 20, 2018 09:07 AM UTC

Hi Chris,  

Thanks for your update. 

SfDataGrid does not have the support to override the CurrentCellBeginEdit event. So, you could handle the CurrentCellBeginEdit event to make a specific row as a read only. So, please let us know your exact need of override the CurrentCellBeginEdit event, thereby we could analyze and provide you the possible solution on it. 



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