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

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

3 Replies

AD Administrator Syncfusion Team 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


AD Administrator Syncfusion Team 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.


AD Administrator Syncfusion Team 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

Loader.
Up arrow icon