cell read only in griddataboundgrid

Hi,
I am using griddataboundgrid to display a data table by assigning the data table to be its data source. This table is meant to be read only, so I am trying to turn off that "focus" effect whenever a cell is selected, it makes it seems as if the user can type in it even though they cannot.

Thanks for the help.

zheng

1 Reply

HA haneefm Syncfusion Team June 14, 2007 06:47 PM UTC

Hi Zheng,

You can try setting TableStyle.CellType to "Static" to turn off the editing cursor in a cell. Please let me know if this helps.

this.grid.TableStyle.CellType = "Static";
this.gridDataBoundGrid1.Model.Options.ShowCurrentCellBorderBehavior = GridShowCurrentCellBorder.HideAlways; //Turn off focus rectangle

Best regards,
Haneef

Loader.
Up arrow icon