I have a databound grid which contains a GridBoundColumn which I initialize with a CellType of "ComboBox". I then set the DataSource, DisplayMember, and ValueMember in order to display the proper value in the cell. For certain rows, however, I need to set the cells to readonly which I do by setting e.Style.ReadOnly = True in the grid.model.QueryCellInfo routine. Although this prevents the user from selecting a different choice it does not prevent the combobox from displaying the drop down.
I tried setting e.Style.CellType = "Static" for these cells in PrepareViewStyleInfo, however this caused the cell to no longer display the DisplayMember. Is there a way to retain the properties of the ComboBox cell while dynamically preventing it from showing the dropdown?