ADAdministrator Syncfusion Team May 27, 2004 07:05 AM
You can hide buttons by setting the style.ShowButtons property for the cells.
Is this what you mean by hiding the control?
ADAdministrator Syncfusion Team May 27, 2004 08:10 AM
Yes this is what I am looking for. Is this apply to all the build in controls? combo box, checkbox, etc...
Or is this only apply to button?
ADAdministrator Syncfusion Team May 27, 2004 08:20 AM
It applies to buttons only, but does include the ComboBox button, pushbutton and any other cell buttons you might be using. It will not hide a checkbox.
If you want to hide checkboxes, then you could set all the celltypes to be "Static", and then handle PrepareViewStyleInfo. In your handler, if e.RowIndex and e.ColIndex point to grid.CurrentCell.RowIndex and grid.CurrentCell.ColIndex, you could then try setting e.Style.CellType to be whatever control you want in that row and column. (I mention PrepareViewStyleInfo here, but am not sure whther you would need to handle model.QueryCellInfo instead. But I think one or the other of these events should work to handle this.)
ADAdministrator Syncfusion Team May 27, 2004 09:53 AM
thank you very much. You help me to solve many of my problems very quick. I enjoy posting my issues in this forum. The turnaround time is great.