【发布时间】:2011-07-05 10:02:20
【问题描述】:
int[] arr = int[100];
listBox1.DataSource = arr;
void ComboBox1SelectedIndexChanged(object sender, EventArgs e)
{
.....//some processes
listBox1.DataSource = null;
listBox1.DataSource = arr;
}
is not working,
还有,
listBox1.Refresh(); is not working,
还有,
listBox1.Update(); is not working,
我知道我可以使用BindingList<T>,但我只能使用数组。
你能帮我如何刷新列表框吗?
【问题讨论】: