Hi
im a beginner and just need some help solving this problem. i think its simple but have tried to figure it out but im getting no where. i currently have four text boxes to which i add data to, i then click the add and want to add this to the listview. i am able to add the first time but then can not add again also this does not add data from the first text box to the first column but leaves the first column out and starts from the second column.
below is the code
ListViewItem item1 = new ListViewItem();
// add items.
item1.SubItems.Add((Convert.ToString(StudentHouses.HouseNo)));
item1.SubItems.Add((StudentHouses.AddressLine1));
item1.SubItems.Add((StudentHouses.AddressLine2));
item1.SubItems.Add((StudentHouses.AddressLine3));
//Add the items to the ListView.
listView1.Items.Add( item1 );
// Add the ListView to the control collection.
this.Controls.Add(listView1);
Any help would be appreciated.
thankyou