stupid problem setting cellvalue

I have a problem where my CellValue won't update. In my Display routine, I set certain ReadOnly values of cells to True, the first time it runs the display routine runs ok. But the second time it fails, the items won't update because ReadOnly won't go back to False.. Am I missing something else very obvious? The grid control itself is NOT set to readonly. This code is in there the help draw the grid right, I don't think these should have an affect on what I'm doing?? grdLineItems.BeginUpdate() grdLineItems.SuspendChangeEvents() ... .cellvalue changing code in here.. grdLineItems.ResumeChangeEvents() grdLineItems.EndUpdate() grdLineItems.Refresh() thanks

1 Reply

AD Administrator Syncfusion Team August 4, 2003 03:19 PM UTC

If you have a cell whose style.ReadOnly is true, then you cannot change it unless you tell the grid to ignore the readonly settings: this.grid.IgnoreReadOnly = true; //turn readonly off // make your changes to readonly cells... //... //... this.grid.IgnoreReadOnly = false; //turn readonly on

Loader.
Up arrow icon