我同时加载100条数据就卡得动都动不了,是我的问题还是你们的问题,求解答。加载的代码:
for (int i = 0; i <= 100; i++)
{
ListViewItem lvi = new ListViewItem();
lvi.ImageIndex = 0;
//lvi.Text = "";
for (int j = 0; j < _ListView.Columns.Count; j++)
{
string _tempData = _ListView.Columns[j].Name + j.ToString();
ListViewItem.ListViewSubItem lvs = new ListViewItem.ListViewSubItem();
lvs.Text = _tempData;
lvs.Tag = lvi.Text;
if (j == 0)
lvi.Text = _tempData;
else
{
lvi.SubItems.Add(lvs);
}
}
_ListView.Items.Add(lvi);
i++;
}
|