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
close icon

DropDown behavior in a ComboBox celltype

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

1 Reply

AD Administrator Syncfusion Team 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; } }

Loader.
Live Chat Icon For mobile
Up arrow icon