jj 15.03 datagridview can add rows

This commit is contained in:
JenneJ
2016-03-15 14:41:45 +01:00
parent 7726db9872
commit 15b08db258
7 changed files with 80 additions and 48 deletions

View File

@@ -399,15 +399,11 @@
Public Class DataGridView : Inherits _ListControl
Public Shared Sub LoadList(control As Windows.Forms.DataGridView, formId As Integer, ConnId As Object, SQLCommand As String)
Dim controlId As Integer = DirectCast(control.Tag, ClassControlMetadata).Id
Dim dynamic As DynamicValue = GetDynamicValue(DirectCast(control.Tag, ClassControlMetadata).Id, formId, ConnId, SQLCommand)
' SQLCommand ignorieren
If dynamic.StaticList IsNot Nothing Then
control.DataSource = dynamic.StaticList
End If
Public Shared Sub LoadValue(control As Windows.Forms.DataGridView, values As List(Of Object))
control.Rows.Clear()
For Each item In values
control.Rows.Add(item.ToString)
Next
End Sub
End Class