D
dirk van waes
Hello,
I fill an arraylist (ALstudents) with data from a dataset
Therefor, I first made a structure :
Public Structure lldata
Dim NameForname As String
Dim points As String
Dim llremark As String
Dim llnr As Integer
End Structure
Then I filled Alstudents with the data from the dataset, transformed in
lldata
I can adress the data now as follows : Alstudents(2).NameForname
Now I want to bind this arraylist to a dynamic datagrid.
dgstudents.recordsource = Alstudents
Problem is, I get an runtime-error defining new colums in the grid as
folows:
datagridcol.DataField ="NameForname" (as with a dataset)
I get : "A field or property with the name 'NameForname' was not found on
the selected datasource."
I suppose it has something to do with adressing the lldata-structure. I
changed the syntax many times, but nothing seems to work.Can somebody point
me in the right direction on this one?
TIA
Dirk
I fill an arraylist (ALstudents) with data from a dataset
Therefor, I first made a structure :
Public Structure lldata
Dim NameForname As String
Dim points As String
Dim llremark As String
Dim llnr As Integer
End Structure
Then I filled Alstudents with the data from the dataset, transformed in
lldata
I can adress the data now as follows : Alstudents(2).NameForname
Now I want to bind this arraylist to a dynamic datagrid.
dgstudents.recordsource = Alstudents
Problem is, I get an runtime-error defining new colums in the grid as
folows:
datagridcol.DataField ="NameForname" (as with a dataset)
I get : "A field or property with the name 'NameForname' was not found on
the selected datasource."
I suppose it has something to do with adressing the lldata-structure. I
changed the syntax many times, but nothing seems to work.Can somebody point
me in the right direction on this one?
TIA
Dirk