C# listview 不显示 数据,代码贴上,但执行后listview出现滚动条

2024-12-23 11:39:59
推荐回答(1个)
回答1:

ListViewItem mylvi = new ListViewItem(dr[0].ToString());
mylvi.SubItems.Add(dr[1].ToString());
mylvi.SubItems.Add(dr[2].ToString());
listView1.Items.Add(mylvi);