I'm using the data bound essential grid under vb.net an want to display a cell with a static text ("Title:"). I use the following properties for the cell:
celltype = static
text = "Title:"
This doesn't work. Can you help me?
ADAdministrator Syncfusion Team July 28, 2003 04:08 AM
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.