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

Explain the use of the ColumnDescriptor.AllowDropDownCell = false in a GridGroupingControl?

Platform: WinForms |
Control: GridDataBoundGrid(Classic)


In a GridGroupingControl, to hide the dropdown buttons in the cell which are the auto generated dropdowns that show up as part of the filter bar cells or columns that are part of the foreign-key relations, it is advantageous to set the ColumnDescriptor.AllowDropDownCell property to false. This is because, if we set the AllowDropDownCell property to false, it will prevent the listbox part of the cells from being initialized when clicked inside the cell. It will be just a normal TextBoxCell and the base grouping engine will do the mapping from id to display column.


// setting the AllowDropDownCell property.

this.gridGroupingControl1.TableDescriptor.Columns["State_Name"].AllowDropDownCell = false;


' setting the AllowDropDownCell property.

Me.gridGroupingControl1.TableDescriptor.Columns("State_Name").AllowDropDownCell = False

But if we set the styles properties and leave the AllowDropDownCell property to true, then the cell type is still a listbox and the listbox will be initialised when clicked inside the cell eventhough it is not editable and no button is visible.The style properties are set by using the following code:







But even if it is set, the user can be still able to dropdown the cell with ALT + Down Arrow. To prevent this, you would also need to set the Clickable property to false.







2X faster development

The ultimate WinForms UI toolkit to boost your development speed.
You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

Warning Icon 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.Close Icon

Live Chat Icon For mobile