I have a List<Student> where for every student 4 properties.
At the moment I'm using this:
listStudents = new List<Student>();
foreach (Student s in listStudents)
{
listbox1.Items.Add(s);
}
But it shows the 4 properties next to each other.
I did some research to sort the properties in columns, and found listview.
Can anyone explain me how can i do this?
I tried to add columns to the collection of the listview, but it still didn't work...
I tried also it:
listStudents = new List<Student>();
foreach (Student s in listStudents)
{
listview.Items.Add(s);
}
Can anyone tell me what I'm doing wrong? I just want the 4 propertys for each student in different columns.