|
//Event Triggering
this.gridGroupingControl1.TableControlCurrentCellKeyPress += GridGroupingControl1_TableControlCurrentCellKeyPress;
//Event customization
private void GridGroupingControl1_TableControlCurrentCellKeyPress(object sender, GridTableControlKeyPressEventArgs e)
{
if(!e.TableControl.CurrentCell.IsDroppedDown)
{
e.TableControl.CurrentCell.ShowDropDown();
}
} |
Hi Josip,
Thanks for contacting Syncfusion support.
We have analyzed the code snippet that you provided. We suspect that you want to show the dropdown when text is entered in the combobox celltype. By default, GridControl does not have the support to show the dropdown to suggest the text. But, you can be achieved this requirement by handling TableControlCurrentCellKeyPress event. Please refer to the below code snippet and the KB document,
Code Example
//Event Triggeringthis.gridGroupingControl1.TableControlCurrentCellKeyPress += GridGroupingControl1_TableControlCurrentCellKeyPress;//Event customizationprivate void GridGroupingControl1_TableControlCurrentCellKeyPress(object sender, GridTableControlKeyPressEventArgs e){if(!e.TableControl.CurrentCell.IsDroppedDown){e.TableControl.CurrentCell.ShowDropDown();}}
Sample Link: Sample
KB Link: https://www.syncfusion.com/kb/6946/how-to-show-the-dropdown-of-combobox-on-entering-a-text-in-cell
Please let us know if you have any other queries.
Regards,Sindhu TN