المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : ListBox to be updated on datasource data update



C# Programming
07-19-2009, 09:12 AM
Hello,

I have a ListBox and its DataSource as ArrayList.
What I want is whenever I add or remove items into ArrayList, to reflect changes automatically in ListBox.
My current temporary solution is to assign DataSource null then assign back to Array list, this will force ugly update.
Any idea?

Thanks