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:

Created:

Updated:

Platform:

Replies:

130315 May 5,2017 11:57 PM UTC May 9,2017 04:23 AM UTC WPF 1
loading
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
                currentCell.ShowDropDown()
            Else
                currentCell.CloseDropDown(Syncfusion.Windows.Forms.PopupCloseType.Canceled)
            End If
            Return
        End If           

    End Sub

Kind Regards

Mike
 

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.  

Regards, 
Gayathri 


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

;