We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

static cell type in data bound grid

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?

1 Reply

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.

Loader.
Live Chat Icon For mobile
Up arrow icon