Control User Input

Hi All, My requirement is to make few cell in a partcular columns as read only and the other cells as editable(and should be in different backcolor). I am using GridQueryCellStyleInfoEvent to get my color in column, can I do for readonly data in same event ? for eg if(e.TableCellIdentity.ColIndex==4) { e.Style.BackColor=Color.Orange; } else { //Code for the cell to be readonly.. // Is it possible } Thanks Vinay

1 Reply

AD Administrator Syncfusion Team December 16, 2005 02:48 PM UTC

Yes. Try setting e.Style.ReadOnly = true in the QueryCellStyleInfo event.

Loader.
Up arrow icon