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

disable cell in grid

How do I disable a cell in a grid with a combo box in it?

1 Reply

AD Administrator Syncfusion Team April 1, 2004 01:56 PM UTC

If you don''t want it clickable, you can set gridControl1[rowIndex, 3].Clickable = false; If you don''t want it enabled, you can set gridControl1[rowIndex, 3].Enabled = false; There is also a ShowButtons style property that allows you to hide the button, and there is a ReadOnly that would make the cell ReadOnly. You can see these properties in action in the Grid\Samples\CellTypes\ComboboxCells sample. If it is a GridDataBoundGrid, you cannot explicitly set such properties on a cell by cell basis. (You can set them for the whole column using GridBoundColUmn.StyleInfo fo the column.) If you need to do it on a cell by cell basis, you will have to use PrepareViewStyleInfo as shown in this KB, http://www.syncfusion.com/Support/article.aspx?id=560.

Loader.
Up arrow icon