// 实现该功能花了我好多时间啊,资料查了N久 ...
//窗体加载时 private void FrmViewAdmin_Load(object sender, EventArgs e) { string[] str=new string[2]; char a='A'; for (int i = 1; i < 11;i++,a++ ) { str[0] = i.ToString(); str[1] = a.ToString();
//获取当前ListView行数 int row = this.listViewAdmin.Items.Count;
//向ListView插入数据 this.listViewAdmin.Items.Insert(row,new ListViewItem(str)); }
}
效果如下: