jj: rename lookupgrid to lookupControl

This commit is contained in:
Jonathan Jenne
2018-10-30 15:49:15 +01:00
parent ff7e16d5c6
commit 8627899b32
12 changed files with 22 additions and 22 deletions

View File

@@ -0,0 +1,21 @@
Imports System.Windows.Forms
Imports DevExpress.XtraGrid.Views.Grid
Namespace LookupGrid
Public Class LookupGridHandler
Inherits Handler.GridHandler
Public Sub New(ByVal gridView As GridView)
MyBase.New(gridView)
End Sub
Protected Overrides Sub OnKeyDown(ByVal e As KeyEventArgs)
MyBase.OnKeyDown(e)
If e.KeyData = Keys.Delete AndAlso View.State = GridState.Normal Then
View.DeleteRow(View.FocusedRowHandle)
End If
End Sub
End Class
End Namespace