-1
我想將DataGridView的內容存儲在數組中 ,反之亦然,我想將數組讀入Datagridview。如何將datagridview作爲數組存儲在mysql表的單元格中
我發現這個班的淨
Public Class Loads
Private L_nr As String
Private L_plz As String
Private L_km As String
Public Sub New(ByVal nr, ByVal plz, ByVal km)
L_nr = nr
L_plz = plz
L_km = km
End Sub
Public Property nr() As String
Get
Return L_nr
End Get
Set(ByVal Value As String)
L_nr = Value
End Set
End Property
Public Property plz() As String
Get
Return L_plz
End Get
Set(ByVal Value As String)
L_plz = Value
End Set
End Property
Public Property km() As String
Get
Return L_km
End Get
Set(ByVal Value As String)
L_km = Value
End Set
End Property
End Class
我XAN使用這樣
Private Sub DataGridViewLoads1_Click(sender As Object, e As EventArgs) Handles DataGridViewLoads1.Click
Dim al As New Collections.ArrayList()
al.Add(New Loads(123, 234, 1971))
DataGridViewLoads1.DataSource = al
End Sub
但它不是我想要