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

DropDown behavior in a ComboBox celltype

Thread ID:





8377 Nov 4,2003 01:25 PM UTC Nov 4,2003 03:45 PM UTC WinForms 1
Tags: GridControl
Administrator [Syncfusion]
Asked On November 4, 2003 01:25 PM UTC

Guys, I have a requirement where whenever the user click (anywhere in the cell) or start typing in a combobox cell the dropdown list should be shown. Any idea on how can I accomplish this? TIA Jose

Administrator [Syncfusion]
Replied On November 4, 2003 03:45 PM UTC

You can try handling CurrentcellStartEditing, and drop the combobox there. Here is code that drops combos in column 3. bool inDrop = false; //avoid recursive call private void dataBoundGrid1_CurrentCellStartEditing(object sender, CancelEventArgs e) { GridCurrentCell cc = this.dataBoundGrid1.CurrentCell; if(cc.ColIndex == 3 && !inDrop) { inDrop = true; cc.ShowDropDown(); inDrop = false; } }


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.

Please sign in to access our forum

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

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
Live Chat Icon