jj: add preventduplicate values and add new items to lookupGrid

This commit is contained in:
Jonathan Jenne
2018-08-23 15:28:11 +02:00
parent d352487f29
commit 433155e804
10 changed files with 440 additions and 263 deletions

View File

@@ -1,9 +1,9 @@
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()>
Partial Class frmLookupGrid
Inherits System.Windows.Forms.Form
'Das Formular überschreibt den Löschvorgang, um die Komponentenliste zu bereinigen.
<System.Diagnostics.DebuggerNonUserCode()> _
<System.Diagnostics.DebuggerNonUserCode()>
Protected Overrides Sub Dispose(ByVal disposing As Boolean)
Try
If disposing AndAlso components IsNot Nothing Then
@@ -20,14 +20,13 @@ Partial Class frmLookupGrid
'Hinweis: Die folgende Prozedur ist für den Windows Form-Designer erforderlich.
'Das Bearbeiten ist mit dem Windows Form-Designer möglich.
'Das Bearbeiten mit dem Code-Editor ist nicht möglich.
<System.Diagnostics.DebuggerStepThrough()> _
<System.Diagnostics.DebuggerStepThrough()>
Private Sub InitializeComponent()
Me.gridLookup = New DevExpress.XtraGrid.GridControl()
Me.viewLookup = New DevExpress.XtraGrid.Views.Grid.GridView()
Me.Panel1 = New System.Windows.Forms.Panel()
Me.btnClear = New System.Windows.Forms.Button()
Me.btnOK = New System.Windows.Forms.Button()
Me.Button1 = New System.Windows.Forms.Button()
CType(Me.gridLookup, System.ComponentModel.ISupportInitialize).BeginInit()
CType(Me.viewLookup, System.ComponentModel.ISupportInitialize).BeginInit()
Me.Panel1.SuspendLayout()
@@ -47,17 +46,15 @@ Partial Class frmLookupGrid
'
Me.viewLookup.GridControl = Me.gridLookup
Me.viewLookup.Name = "viewLookup"
Me.viewLookup.OptionsBehavior.AllowAddRows = DevExpress.Utils.DefaultBoolean.[True]
Me.viewLookup.OptionsFind.AlwaysVisible = True
Me.viewLookup.OptionsFind.FindDelay = 200
Me.viewLookup.OptionsFind.FindMode = DevExpress.XtraEditors.FindMode.Always
Me.viewLookup.OptionsFind.ShowClearButton = False
Me.viewLookup.OptionsFind.ShowFindButton = False
Me.viewLookup.OptionsView.NewItemRowPosition = DevExpress.XtraGrid.Views.Grid.NewItemRowPosition.Top
Me.viewLookup.OptionsView.ShowGroupPanel = False
'
'Panel1
'
Me.Panel1.Controls.Add(Me.Button1)
Me.Panel1.Controls.Add(Me.btnClear)
Me.Panel1.Controls.Add(Me.btnOK)
Me.Panel1.Dock = System.Windows.Forms.DockStyle.Bottom
@@ -86,15 +83,6 @@ Partial Class frmLookupGrid
Me.btnOK.Text = "OK"
Me.btnOK.UseVisualStyleBackColor = True
'
'Button1
'
Me.Button1.Location = New System.Drawing.Point(100, 3)
Me.Button1.Name = "Button1"
Me.Button1.Size = New System.Drawing.Size(94, 23)
Me.Button1.TabIndex = 1
Me.Button1.Text = "RestoreSelect"
Me.Button1.UseVisualStyleBackColor = True
'
'frmLookupGrid
'
Me.AcceptButton = Me.btnOK
@@ -103,7 +91,6 @@ Partial Class frmLookupGrid
Me.ClientSize = New System.Drawing.Size(295, 269)
Me.Controls.Add(Me.gridLookup)
Me.Controls.Add(Me.Panel1)
Me.KeyPreview = True
Me.MaximizeBox = False
Me.MinimizeBox = False
Me.Name = "frmLookupGrid"
@@ -121,5 +108,4 @@ Partial Class frmLookupGrid
Friend WithEvents Panel1 As Panel
Friend WithEvents btnOK As Button
Friend WithEvents btnClear As Button
Friend WithEvents Button1 As Button
End Class