M
Matteo
I am kinda new to VB.NET so please bear with me. I am
working on a project that accesses a database and returns
an arrayList of strings. I am then supposed to parse the
string into separate strings that hold pieces of
information. Now I am supposed to take those pieces of
information and place them in a mulitcolumn listview. I
have my listview set up and I have the loop set up to
cycle through the arrayList and parse each line, however,
for the life of me I cannot figure out how to add data to
each column. Here is an example to better explain what I
am trying to do:
I have a ListView set up with the following columns
(Name, Subject, Rate, Degree and Hours). SO I have 5
columns. Now I parse each line from the arrayList into 5
strings (strName, strSub, strRate, strDeg and strHours).
Now how do I loop through and tell the program to add
strName under the Name column, strSub under the Subject
column, etc. And when that is done with the first line,
go on to the next line in the listview and repeat the
process until the listview is empty. Any help would be
GREATLY appreciated.
Matteo
working on a project that accesses a database and returns
an arrayList of strings. I am then supposed to parse the
string into separate strings that hold pieces of
information. Now I am supposed to take those pieces of
information and place them in a mulitcolumn listview. I
have my listview set up and I have the loop set up to
cycle through the arrayList and parse each line, however,
for the life of me I cannot figure out how to add data to
each column. Here is an example to better explain what I
am trying to do:
I have a ListView set up with the following columns
(Name, Subject, Rate, Degree and Hours). SO I have 5
columns. Now I parse each line from the arrayList into 5
strings (strName, strSub, strRate, strDeg and strHours).
Now how do I loop through and tell the program to add
strName under the Name column, strSub under the Subject
column, etc. And when that is done with the first line,
go on to the next line in the listview and repeat the
process until the listview is empty. Any help would be
GREATLY appreciated.
Matteo