ListBox, DataBinding og egen klasse
Hej,Jeg har 2 klasser:
Person og Persons
Persons implamentere CollectionBase og modtager en Person i constructoren... fint nok bliver binding til min listBox1 og der navn bliver vist... ( der er flere propeties i Person klassen )
Men hvis jeg tilføjer flere Personer til klassen eller retter opdatere den ikke.. :-(
Min hjerne kan ikke lige magte det, men har ca. 50% af svaret, men kan ikke finde ud af hvordan det skal laves....
---------------------------
If you are bound to a data source that does not implement the IBindingList interface, such as an ArrayList, the bound control's data will not be updated when the data source is updated. For example, if you have a combo box bound to an ArrayList and data is added to the ArrayList, these new items will not appear in the combo box. However, you can force the combo box to be updated by calling the SuspendBinding and ResumeBinding methods on the instance of the BindingContext class to which the control is bound.
---------------------------
How do I do that, er list lost her....
// ouT
