LookupGrid: show value when only one value is selected, if new value is added in multiselect, select it automatically

This commit is contained in:
Jonathan Jenne
2021-03-17 13:38:27 +01:00
parent 64137a297c
commit d5b677ae07
9 changed files with 31 additions and 35 deletions

View File

@@ -233,4 +233,11 @@ Public Class frmLookupGrid
Private Sub frmLookupGrid_Shown(sender As Object, e As EventArgs) Handles Me.Shown
BringToFront()
End Sub
Private Sub viewLookup_ValidateRow(sender As Object, e As ValidateRowEventArgs) Handles viewLookup.ValidateRow
If MultiSelect Then
Dim oRow As DataRowView = viewLookup.GetRow(e.RowHandle)
oRow.Row.Item("SELECTED") = True
End If
End Sub
End Class