473,406 Members | 2,220 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Updataing ComboBox DataSource

Bob
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.
Nov 20 '05 #1
9 3975
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" <Bo*@discussions.microsoft.com> wrote in message
news:90**********************************@microsof t.com...
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.
Nov 20 '05 #2
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
Nov 20 '05 #3
* "One Handed Man \( OHM#\)" <news.microsoft.com> scripsit:
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.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #4
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
Nov 20 '05 #5
I'm a little suprised actually, but he is right though because I just tried
it.


"Cor Ligthert" <no**********@planet.nl> wrote in message
news:u%****************@TK2MSFTNGP12.phx.gbl...
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

Nov 20 '05 #6
* "Cor Ligthert" <no**********@planet.nl> scripsit:
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 :-).
If 'DataSource' is set to an 'ArrayList', the combobox won't update if
you remove an item from the arraylist.


--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #7
How many time I have to tell you not to spoil my fun, what did you think I
did.
Nov 20 '05 #8
:)
"Cor Ligthert" <no**********@planet.nl> wrote in message
news:ey**************@TK2MSFTNGP11.phx.gbl...
How many time I have to tell you not to spoil my fun, what did you think I
did.

Nov 20 '05 #9
Bob
Sorry about that. I had a computer glich when posting and was not even sure it got posted.

"Cor Ligthert" wrote:
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

Nov 20 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Tamir Khason | last post by:
Why this does not work??? cb1 - combobox DataProvider.DataProvider.DS_BringRacks() - DataSet cb1.DataSource=DataProvider.DataProvider.DS_BringRacks().Tables; cb1.DisplayMember = "id"; ...
0
by: CalPARK InterNetStation | last post by:
Could anyone explain why the difference of behavior betweein Case1 and Case2 occurs? Microsoft Visual C#.NET 55607-652-0000007-18218 Windows Forms Application 1. put a TabControl on a Form...
3
by: PeterZ | last post by:
G'day, After doing much searching and pinching bits of ideas from here there and everywhere I came up with a fairly 'clean' solution of including a comboBox into a dataGrid column. You can...
2
by: pei_world | last post by:
I want to implement a key hit with enter to dropdown a combobox that is in the datagrid. in this case I need to override its original behaviours. I found some codes from the web. Does anyone know...
8
by: Steve B. | last post by:
My Program: a local C# ADO.Net application using VS 2003 Right now I have about 5 ComboBox's which provides drop down selection entries from the same MS-Access table via a DataConnection,...
2
by: jobi | last post by:
Hi, I have this combobox which has a table from a dataset as datasource. When I click an item on the combobox-list , I would like to display (in textfield) the value from an other column that...
2
by: AMDRIT | last post by:
Hello Everyone, I would like to format the Display Members of a combobox's datasource. Is there a way to apply a format without subclassing the original datasource? For example, given a list of...
6
by: dbuchanan | last post by:
VS2005 I've been reading all the help I can on the topic (MSDN, other) but I can't make sense of this. Desired behavior; The user is to choose from the displayed list of the databound combobox...
2
by: samueltilden | last post by:
This problem should be simple. I am using Visual Studio 2003, Version 1.1 I am writing a desktop application in which I am binding a DataTable to the DataSource of a ComboBox. // I have...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.