2X faster development
The ultimate WinForms UI toolkit to boost your development speed.
Combobox customizationTo show the ComboBox dropdown on entering the text in cell, TableControlCurrentCellKeyPress event can be used and CurrentCell.ShowDropDown property can be used in that event. The Autocomplete option can be enabled by using AutoCompleteInEditMode property. C# //Assigning the column cell types as GridListControl this.gridGroupingControl1.TableDescriptor.Columns["Description"].Appearance.AnyRecordFieldCell.CellType = GridCellTypeName.GridListControl; //Enables Autocomplete this.gridGroupingControl1.TableDescriptor.Columns["Description"].Appearance.AnyRecordFieldCell.AutoCompleteInEditMode = GridComboSelectionOptions.AutoSuggest; //Triggering Event this.gridGroupingControl1.TableControlCurrentCellKeyPress += gridGroupingControl1_TableControlCurrentCellKeyPress; //Handling Event void gridGroupingControl1_TableControlCurrentCellKeyPress(object sender, Syncfusion.Windows.Forms.Grid.Grouping.GridTableControlKeyPressEventArgs e) { if (!e.TableControl.CurrentCell.IsDroppedDown) { e.TableControl.CurrentCell.ShowDropDown(); } }
VB 'Assigning the column cell types as GridListControl. Private Me.gridGroupingControl1.TableDescriptor.Columns("Description").Appearance.AnyRecordFieldCell.CellType = GridCellTypeName.GridListControl 'Enables Autocomplete Private Me.gridGroupingControl1.TableDescriptor.Columns("Description").Appearance.AnyRecordFieldCell.AutoCompleteInEditMode = GridComboSelectionOptions.AutoSuggest 'Triggering Event Private Me.gridGroupingControl1.TableControlCurrentCellKeyPress += AddressOf gridGroupingControl1_TableControlCurrentCellKeyPress 'Handling Event Private Sub gridGroupingControl1_TableControlCurrentCellKeyPress(ByVal sender As Object, ByVal e As Syncfusion.Windows.Forms.Grid.Grouping.GridTableControlKeyPressEventArgs) If Not e.TableControl.CurrentCell.IsDroppedDown Then e.TableControl.CurrentCell.ShowDropDown() End If End Sub
Screenshot Samples: |
2X faster development
The ultimate WinForms UI toolkit to boost your development speed.
This page will automatically be redirected to the sign-in page in 10 seconds.