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.

DropDown behavior in a ComboBox celltype

Thread ID:





8377 Nov 4,2003 08:25 AM Nov 4,2003 10:45 AM Windows Forms 1
Tags: GridControl
Administrator [Syncfusion]
Asked On November 4, 2003 08:25 AM

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 10:45 AM

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.

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.