JJ
Jisha Joy
Syncfusion Team
March 18, 2010 04:35 AM UTC
Hi George,
You need to ignore ReadOnly style temporarly to apply styles to the readOnly cells. See the modifed code:
col.HeaderText = "Status Message";
col.MappingName = "StatusText";
col.ReadOnly = true;
this.gridDataBoundGrid1.Model.IgnoreReadOnly = true;
// update grid styles for this column
col.StyleInfo.CellType = "TextBox";
col.StyleInfo.CellValueType = typeof(String);
col.StyleInfo.CellTipText = "Status message";
col.StyleInfo.MaxLength = 255;
col.StyleInfo.HorizontalAlignment = GridHorizontalAlignment.Left;
this.gridDataBoundGrid1.Model.IgnoreReadOnly = false;
Regards,
Jisha