469,589 Members | 2,147 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,589 developers. It's quick & easy.

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 2856
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by jaYPee | last post: by
7 posts views Thread by Aaron Smith | last post: by
1 post views Thread by Mike Swans | last post: by
7 posts views Thread by Paul Bromley | last post: by
5 posts views Thread by WRH | last post: by
1 post views Thread by jg007 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.