Question about binding to an ArrayList
-Eric Harmon
-Eric Harmon
You'll want to look into using BindingList<T> in the System.ComponentModel namespace instead of an ArrayList. For Windows Forms databinding to work correctly, collections need to implement either IBindingList or IBindingList<T>; ArrayList does not implement these interfaces.
There are some good articles on MSDN magazine about extending BindingList<T> to support searching and sorting too.
--Oren
Eric,
Oren is correct. BindingList<T> provides similar functionality, but was designed to with the data binding interfaces in mind.
If you have further questions on this issue, check out the Windows Forms Databinding forum.
| Microsoft Technical Forums Windows Forms Windows Forms Databinding |
I hope this information proves helpful.
David Sceppa
Microsoft