2.向ListViewItem对象中添加子项 item.SubItems.Add(DataReader对象["子项列名"].ToString()); item.SubItems.Add(dataReader["StudentName"].ToString()); item.SubItems.Add(dataReader["Gender"].ToString()); item.SubItems.Add(dataReader["GradeId"].ToString()); item.SubItems.Add(dataReader["Phone"].ToString()); item.SubItems.Add(dataReader["Address"].ToString()); item.SubItems.Add(dataReader["BornDate"].ToString()); item.SubItems.Add(dataReader["Email"].ToString());
3.向ListView的Items(集合)中添加ListViewItem对象
ListView对象.Items.Add(ListViewItem对象);
lvStuList.Items.Add(item);
转载于:https://www.cnblogs.com/Geek1st/p/3253821.html