By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
426,083 Members | 1,608 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 426,083 IT Pros & Developers. It's quick & easy.

Dynamically adding values to bound combobox??

P: n/a
I have a bound combobox the appears on a cell within the column of my bound
grid when the user clicks on a cell n(In my vb.net WinForm app).
I am trying to allow the adding of an item to that bound combo by allowing
the user to dynamically type in the new value directly in the combo box
whcih in turn updates the lookup table and then when they have finished
leaves that particular cell on the grid with the correct value.

Seems straight-forward enough but I have been having a time especially with
the return value from the lookup, etc. Any ideas (and code)?

Nov 20 '05 #1
Share this Question
Share on Google+
5 Replies


P: n/a

"Aaron Ackerman" <no@spam.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...

Please do not crosspost questions between .NET and non-.NET groups. The
*.vb.* groups are for VB6 and earlier.
Nov 20 '05 #2

P: n/a
I used an ArrayList to fill my combo box and when a user added a new entry
that did not exist in the combo box I added it to the array list and then
sorted. After which the entry would appear in the drop down box.

"Aaron Ackerman" <no@spam.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
I have a bound combobox the appears on a cell within the column of my bound grid when the user clicks on a cell n(In my vb.net WinForm app).
I am trying to allow the adding of an item to that bound combo by allowing
the user to dynamically type in the new value directly in the combo box
whcih in turn updates the lookup table and then when they have finished
leaves that particular cell on the grid with the correct value.

Seems straight-forward enough but I have been having a time especially with the return value from the lookup, etc. Any ideas (and code)?

Nov 20 '05 #3

P: n/a
Hi Aaron,

Do you mean the ComboBox and DataGrid control in VB.NET
or
the DB Grid and DB ComboBox in VB6 ActiveX control?

If it is the first case, then the ComboBox is a control covering onto the
datagrid cell.
So you may need to update the data into table by manual.
Based on my understanding, you want to add some item into the combobox and
then update into the table, i.e. the cell value in the datagrid. But when
you add more than one item into the combobox, which one should be update
into the table?

Did I misunderstand your meaning?
If you have any question please post here.
I also hope that you can post some code to demostate what you want to do.
Regards,
Peter Huang
Microsoft Online Partner Support
Get Secure! www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
--------------------
From: "Aaron Ackerman" <no@spam.com>
Subject: Dynamically adding values to bound combobox??
Date: Thu, 23 Oct 2003 16:01:59 -0400
Lines: 12
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Message-ID: <#F**************@TK2MSFTNGP09.phx.gbl>
Newsgroups: microsoft.public.dotnet.general,microsoft.public.d otnet.languages.vb,microso
ft.public.dotnet.languages.vb.controls,microsoft.p ublic.vb.general.discussio
nNNTP-Posting-Host: ric-64-83-27-134-serial-sta.t1.cavtel.net 64.83.27.134
Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP09.phx.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.vb:149671 microsoft.public.dotnet.languages.vb.controls:2991
microsoft.public.vb.general.discussion:466158
microsoft.public.dotnet.general:113020X-Tomcat-NG: microsoft.public.dotnet.languages.vb

I have a bound combobox the appears on a cell within the column of my bound
grid when the user clicks on a cell n(In my vb.net WinForm app).
I am trying to allow the adding of an item to that bound combo by allowing
the user to dynamically type in the new value directly in the combo box
whcih in turn updates the lookup table and then when they have finished
leaves that particular cell on the grid with the correct value.

Seems straight-forward enough but I have been having a time especially with
the return value from the lookup, etc. Any ideas (and code)?


Nov 20 '05 #4

P: n/a
No thanks.

"Jeff Johnson [MVP: VB]" <i.***@enough.spam> wrote in message
news:uR**************@tk2msftngp13.phx.gbl...

"Aaron Ackerman" <no@spam.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...

Please do not crosspost questions between .NET and non-.NET groups. The
*.vb.* groups are for VB6 and earlier.

Nov 20 '05 #5

P: n/a
Hi Aaron,

Did my last suggestion works for you?
If you have any question on this issue,please post here.

Regards,
Peter Huang
Microsoft Online Partner Support
Get Secure! www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Nov 20 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.