jj 15.03 datagridview can add rows
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user