AD
Administrator
Syncfusion Team
July 28, 2003 08:08 AM UTC
In a GridDataBoundGrid, you cannot set style properties (other than Text or CellValue) for individual cells. (In a GridControl, you can.) The reason is that the only data store available is your DataSource, and it does not have any knowledge of anything except the cell value. (It does not store CellType for example)
In a GridDataBoundGrid, to set a style property like CellType = "Static", try handling PrepareViewStyleInfo, and if e.RowIndex and e.ColIndex point to this cell, then set the properties in e.Style to have the values you want.