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