Updataing ComboBox DataSource

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I want to remove the item from the combobox, but can't because I can't remove the ArrayList as being the datasource of the combobox so I can remove the item in the ArrayList and then assign it back as being the datasource of the combobox.
 
If you dont care bout losing the data from the Array, you can simply remove
the item from the Array, it will disapear from the ComboBox. No need to
rebind

OHM




Bob said:
I want to remove the item from the combobox, but can't because I can't
remove the ArrayList as being the datasource of the combobox so I can remove
the item in the ArrayList and then assign it back as being the datasource of
the combobox.
 
Hi Bob,

Will you be so kind for all others to keep your questions in the same
thread, this cost a lot of useless time.

Cor
 
* "One Handed Man \( OHM#\) said:
If you dont care bout losing the data from the Array, you can simply remove
the item from the Array, it will disapear from the ComboBox. No need to
rebind

If 'DataSource' is set to an 'ArrayList', the combobox won't update if
you remove an item from the arraylist.
 
Hi Herfried,

Why is that, a datasource should be binded to its underlaying data, it is
not a datafill, can you explain it a little bit more?
If 'DataSource' is set to an 'ArrayList', the combobox won't update if
you remove an item from the arraylist.
Cor
 
I'm a little suprised actually, but he is right though because I just tried
it.
 
* "Cor Ligthert said:
Why is that, a datasource should be binded to its underlaying data, it is
not a datafill, can you explain it a little bit more?

I don't know. You know that I am not very familiar with all the *data* stuff
in .NET :-).
 
Back
Top