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>
但我有隻陣列工作。
你能幫我怎麼刷新列表框嗎?
它也許在.NET 3.5及以上工作,例如有沒有辦法來刷新.NET 2.0 – ocanal
有NET 4.0中沒有DataBind() – fnc12