P
PeterB
Hi!
I have an arraylist (arr1) with objects (obj). The objects has a property
named p1, I have set the DataSource-property of a combobox (cmb1) to arr1,
and the DisplayMember property to p1.
If arr1 is filled before the "connection" all items are listed in cmb1, but
if I manipulate (add, remove, change) any objects in arr1, it isn't
reflected in cmb1. (i.e. if I add an object to arr1 it isn't shown in cmb1)
I have tried finding some kind of update method for this but can't seem to
find anything usefull. Do I need to re-set the DataSource binding? Do I need
to manually add the object to the arr1 AND the cmb1?
thanks in advance,
Peter
I have an arraylist (arr1) with objects (obj). The objects has a property
named p1, I have set the DataSource-property of a combobox (cmb1) to arr1,
and the DisplayMember property to p1.
If arr1 is filled before the "connection" all items are listed in cmb1, but
if I manipulate (add, remove, change) any objects in arr1, it isn't
reflected in cmb1. (i.e. if I add an object to arr1 it isn't shown in cmb1)
I have tried finding some kind of update method for this but can't seem to
find anything usefull. Do I need to re-set the DataSource binding? Do I need
to manually add the object to the arr1 AND the cmb1?
thanks in advance,
Peter