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.
Unfortunately, activation email could not send to your email. Please try again.

Disabling a cmbobox in a grid

Thread ID:





42264 Mar 23,2006 01:49 PM Mar 24,2006 12:13 AM Windows Forms 1
Tags: GridControl
Administrator [Syncfusion]
Asked On March 23, 2006 01:49 PM

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

Administrator [Syncfusion]
Replied On March 24, 2006 12:13 AM

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.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.