473,231 Members | 1,572 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,231 software developers and data experts.

MultiColumn ComboBox, how?

I have ask this before and I got a link to a solution where you actually
show a new from on top of everything with a listbox in, where you can have
multicolumns.. and that's what I use now.. That look sokay but it's not a
true Combobox... at all..

So my my customer wants to be able to type stuff into the textfield of
combobox and then it's preselected in the list... With the solution I got
that' simposiible.. since there are no real connection between the Combobox
and the Listbox showing on top of all as a form.

How do I do a TRUE MultiColumn Combobox? Is it even possibel to build
without knowing everything about owenerdrawing and that stuff ...

regards
/Lars
Nov 20 '05 #1
6 3175
Hi Lars,

I have this from a not ready snippet from me, when you do not understand it
reply. It goes synchroon.

\\\
Dim dt As DataTable = ds.Tables(0)
dv = New DataView(dt)
dv.Sort = "Id"
cma = DirectCast(BindingContext(dv), CurrencyManager)
TextBox1.DataBindings.Clear()
Dim mybinding As Binding = New Binding("text", dv, "Id")
TextBox1.DataBindings.Add(mybinding)
ListBox1.DataSource = dv
ListBox1.DisplayMember = "Id"
ComboBox1.DataSource = dv
ComboBox1.DisplayMember = "Id"
///

I hope this helps?

Cor
Nov 20 '05 #2
Hi,

http://www.thecodeproject.com/vb/net...olumncombo.asp

http://www.thecodeproject.com/vb/net...e_combobox.asp

Ken
----------------------
"Lars Netzel" <no****@no.no> wrote in message
news:Ou**************@TK2MSFTNGP10.phx.gbl...
I have ask this before and I got a link to a solution where you actually
show a new from on top of everything with a listbox in, where you can have
multicolumns.. and that's what I use now.. That look sokay but it's not a
true Combobox... at all..

So my my customer wants to be able to type stuff into the textfield of
combobox and then it's preselected in the list... With the solution I got
that' simposiible.. since there are no real connection between the Combobox
and the Listbox showing on top of all as a form.

How do I do a TRUE MultiColumn Combobox? Is it even possibel to build
without knowing everything about owenerdrawing and that stuff ...

regards
/Lars

Nov 20 '05 #3
Thanx, seems like the Code Project one is something I'd need... I wonder why
I did'nt get that link the first time I asked:) I got the link with the
crappy solution

/Lars

"Ken Tucker [MVP]" <vb***@bellsouth.net> skrev i meddelandet
news:%2****************@TK2MSFTNGP10.phx.gbl...
Hi,

http://www.thecodeproject.com/vb/net...olumncombo.asp

http://www.thecodeproject.com/vb/net...e_combobox.asp

Ken
----------------------
"Lars Netzel" <no****@no.no> wrote in message
news:Ou**************@TK2MSFTNGP10.phx.gbl...
I have ask this before and I got a link to a solution where you actually
show a new from on top of everything with a listbox in, where you can have
multicolumns.. and that's what I use now.. That look sokay but it's not a
true Combobox... at all..

So my my customer wants to be able to type stuff into the textfield of
combobox and then it's preselected in the list... With the solution I got
that' simposiible.. since there are no real connection between the Combobox and the Listbox showing on top of all as a form.

How do I do a TRUE MultiColumn Combobox? Is it even possibel to build
without knowing everything about owenerdrawing and that stuff ...

regards
/Lars

Nov 20 '05 #4
But... okay.. I still have a problem... I need to add this into a cell in a
datagrid!

http://www.thecodeproject.com/vb/net...olumncombo.asp

How do I do that?

I can't be the first one ever to need a Combobox with multicolumns as a
cell in a Datagrid am i? It's standard in Access 97 .. if you work with
forms there.. but it .NET everything seems tricky!

/Lars

"Ken Tucker [MVP]" <vb***@bellsouth.net> skrev i meddelandet
news:%2****************@TK2MSFTNGP10.phx.gbl...
Hi,

http://www.thecodeproject.com/vb/net...olumncombo.asp

http://www.thecodeproject.com/vb/net...e_combobox.asp

Ken
----------------------
"Lars Netzel" <no****@no.no> wrote in message
news:Ou**************@TK2MSFTNGP10.phx.gbl...
I have ask this before and I got a link to a solution where you actually
show a new from on top of everything with a listbox in, where you can have
multicolumns.. and that's what I use now.. That look sokay but it's not a
true Combobox... at all..

So my my customer wants to be able to type stuff into the textfield of
combobox and then it's preselected in the list... With the solution I got
that' simposiible.. since there are no real connection between the Combobox and the Listbox showing on top of all as a form.

How do I do a TRUE MultiColumn Combobox? Is it even possibel to build
without knowing everything about owenerdrawing and that stuff ...

regards
/Lars

Nov 20 '05 #5
Lars,

Is it possible that with your next question you add this direct?
But... okay.. I still have a problem... I need to add this into a cell in a datagrid!


I hope you find your solution?

Cor
Nov 20 '05 #6
yes, see my next question
"Cor Ligthert" <no**********@planet.nl> skrev i meddelandet
news:%2***************@tk2msftngp13.phx.gbl...
Lars,

Is it possible that with your next question you add this direct?
But... okay.. I still have a problem... I need to add this into a cell
in a
datagrid!


I hope you find your solution?

Cor

Nov 20 '05 #7

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

Similar topics

0
by: Keith Smith | last post by:
How can this be done in C#...? http://www.codeguru.com/Cpp/controls/combobox/multicolumncombos/article.php/c1825/
4
by: kackson | last post by:
Hi. I attempted to create a multicolumn listbox for my web based aspx application. I search the net, all I get is something like listview or I need to have system.windwos.form. But for the...
0
by: jaYPee | last post by:
I'm wondering why if there is an example of using a multiplecolumn combobox in datagrid control. thanks in advance
7
by: Aaron Smith | last post by:
I would like to try to make a combo box have multiple columns. Does anyone know of a good way to attempt this? I saw a project on thecodeproject to do this, I just didn't like the way it looked. I...
1
by: Mike Swans | last post by:
Has anyone any solutions to multicolumns dropdown combobox? Like to see how to implement it. Thanks!
7
by: Paul Bromley | last post by:
How can I use this please - I need 2 columns. I have been having difficulty finding info on this and the 2005 Treeview control today. Many thanks for any links or info, Paul Bromley
1
by: vijay dahite | last post by:
can anybody tell me how to write code for multicolumn combobox in vb6.0 plzzzz... vijay
5
by: WRH | last post by:
Hello I want to have a multicolumn listbox. I never used one before so I looked at a Help example. I set the multicolumn property and the column width and tested with this example... ...
1
by: jg007 | last post by:
I am porting something from access to c# and the access project has a multicolumn combo box which c# does not seem to have, I have found a few things with google but either they do not seem to be...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...

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.