问题
I've writtent the following code :
this.listView1.Items[i].BackColor = Color.Orange;
I would like to know how can I refresh my listview so I can see in real time the updated listview. Thanks.
回答1:
Normally you should not do anything special, and ListView will be redrawn itself when you're changing item's backcolor.
But anyway, you can use listView1.Refresh();
to force its redrawing.
回答2:
Try the following:
listView1.Items.Clear();
来源:https://stackoverflow.com/questions/30104779/c-sharp-how-to-refresh-a-listview