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 : Nov 16th 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:

Created:

Updated:

Platform:

Replies:

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

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

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

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

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

;