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

Can''t make some columns readonly, but others not

Thread ID:





57811 Mar 12,2007 02:22 PM UTC Mar 12,2007 04:36 PM UTC WinForms 3
Tags: GridControl
Administrator [Syncfusion]
Asked On March 12, 2007 02:22 PM UTC

I want to make some columns of my gridgroupingcontrol ReadOnly and after that add a column of checkbox, which is NOT readonly. What is done wrong?


Administrator [Syncfusion]
Replied On March 12, 2007 02:36 PM UTC

Hi Flashnik,

You can set the ReadOnly property for the required column using the following code snippet.

this.gridGroupingControl1.TableDescriptor.Columns["ColumnName"].ReadOnly = true; //Make column as readonly.
this.gridGroupingControl1.TableDescriptor.Columns["ColumnName"].ReadOnly = false; //Make column as editiable.

Best regards,

Administrator [Syncfusion]
Replied On March 12, 2007 02:50 PM UTC

That's almost exactly what I try to do. In InitializeComponent I set
Appearance.AnyRecordCell.ReadOnly = true
After that I add a new column and set it readonly=false, using an integer indexer.

Administrator [Syncfusion]
Replied On March 12, 2007 04:36 PM UTC

Hi Flashnik,

Please try setting the celltype of the AnyRecordFieldCell to "Static" in a grid.

this.gridGroupingControl1.TableDescriptor.Appearance.AnyRecordFieldCell.CellType = "Static";

Best 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