Readonly cell

I use the following code make my cells read-only. Now when I try to type something in these columns it takes first letter/character, once you tab out from the cell it goes away but it shouldn''t accept even a single character. if(e.ColIndex >= SPREAD_START_COLUMN && e.ColIndex <= SPREAD_END_COLUMN ) { if (!false) { if (this.grid1[e.RowIndex,SPREAD_TYPE_COLUMN].Text.ToString() == "30") e.Style.ReadOnly =false; else e.Style.ReadOnly = true; } } Thanks,

1 Reply

AD Administrator Syncfusion Team November 18, 2005 01:36 AM UTC

Are you using this code in a grid.Model.QueryCellInfo event handler? http://www.syncfusion.com/support/kb/grid/Default.aspx?ToDo=view&questId=95

Loader.
Up arrow icon