jj: Add LookupGrid Control, Work in Progress!

This commit is contained in:
Jonathan Jenne
2018-10-08 16:34:25 +02:00
parent bc740898cc
commit 513ee837fb
16 changed files with 126 additions and 125 deletions

18
LookupGrid/GridHandler.vb Normal file
View File

@@ -0,0 +1,18 @@
Imports System.Windows.Forms
Imports DevExpress.XtraGrid.Views.Grid
Public Class GridHandler
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