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.
Syncfusion Feedback

DropDown behavior in a ComboBox celltype

Thread ID:

Created:

Updated:

Platform:

Replies:

8377 Nov 4,2003 01:25 PM UTC Nov 4,2003 03:45 PM UTC Windows Forms 1
loading
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; } }

CONFIRMATION

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.

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

;