LookupGrid: Update Datasource when new value is added
This commit is contained in:
@@ -229,6 +229,16 @@ Public Class RepositoryItemLookupControl3
|
||||
If oResult = Windows.Forms.DialogResult.OK Then
|
||||
Dim oValues = oForm.SelectedValues
|
||||
UpdateSelectedValues(oValues)
|
||||
|
||||
If oForm.NewValues.Count > 0 AndAlso TypeOf DataSource Is DataTable Then
|
||||
Dim oTable As DataTable = DirectCast(DataSource, DataTable)
|
||||
|
||||
For Each oValue In oForm.NewValues
|
||||
Dim oRow = oTable.NewRow()
|
||||
oRow.Item(0) = oValue
|
||||
oTable.Rows.Add(oRow)
|
||||
Next
|
||||
End If
|
||||
End If
|
||||
End Using
|
||||
End If
|
||||
|
||||
Reference in New Issue
Block a user