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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Drop down the combobox on Enter Key

Thread ID:





130315 May 5,2017 11:57 PM UTC May 9,2017 04:23 AM UTC WPF 1
Tags: GridControl
mike newett
Asked On May 5, 2017 11:57 PM UTC

Hi, how can I convert the following code for the WinForms GridControl, to the WPF GridControl?
I can't find a find of over-riding the Enter key behaviour, or to programmatically drop down the combobox.

    'Key event customization
    Private Sub gridControl1_KeyDown(ByVal sender As Object, ByVal e As KeyEventArgs)
        Dim currentCell As GridCurrentCell = GridControl1.CurrentCell
        Dim info As GridStyleInfo = GridControl1.Model(currentCell.RowIndex, currentCell.ColIndex)

        'Activate the enter key for combobox
        If e.KeyCode = Keys.Enter AndAlso info.CellType Is "ComboBox" Then
            e.Handled = True
            If Not currentCell.IsDroppedDown Then
            End If
        End If           

    End Sub

Kind Regards


Gayathri Arumugam [Syncfusion]
Replied On May 9, 2017 04:23 AM UTC

Hi Mike, 

We have created a sample based on your requirement ”DropDown the ComboBox on enter key”. kindly refer the below sample link. 

Sample Link: 

Please let us know if you need further assistance.  



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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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