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

Disabling a cmbobox in a grid

hello, Could please tell me how can I disable a comboBox in a gridcell? what I did is that I used e.Style.ReadOnly = true; in Grid_ModelQueryCellInfo. but that does not disable entirely the comboBox because the user can still see the ComboBox elements even if he can not chose one. tx regards

1 Reply

AD Administrator Syncfusion Team March 24, 2006 05:13 AM UTC

Hi, A grid cell can be disabled by just setting the e.Style.Enabled property to false which won’t allow the user to select that cell. To allow the user to select the ComboBox type cell and make it ReadOnly and not to show the dropdown list, any one option from the below code snippet can be opted. 1) e.Style.Clickable = false; e.Style.ReadOnly = true; 2) e.Style.ShowButtons = GridShowButtons.Hide; e.Style.ReadOnly = true; Let us know if you have any further queries. Regards, Calvin.

Loader.
Live Chat Icon For mobile
Up arrow icon