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

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

Thread ID:

Created:

Updated:

Platform:

Replies:

57811 Mar 12,2007 10:22 AM Mar 12,2007 12:36 PM Windows Forms 3
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On March 12, 2007 10:22 AM

Hi!
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?

WindowsApplication176.zip

Administrator [Syncfusion]
Replied On March 12, 2007 10:36 AM

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,
Haneef

Administrator [Syncfusion]
Replied On March 12, 2007 10:50 AM

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

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

Hi Flashnik,

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

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

Best regards,
Haneef

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.

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.

;