昨天发现的, listBox1.DataSource重新绑定的时候,一定要listBox1.DataSource = null; ,然后才能实现listBox1的刷新!!!怎么也不理解为什么!
结果是
|
In an ArrayList, the 'plumbing' is not available to support two-way binding as with a dataset. So, you have to handle the synchronization yourself. One way to do this is to set the listBox1.DataSource to null and then reset it to your ArrayList. Another way is to use the CurrencyManager as shown in the code below. |
浙公网安备 33010602011771号