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

MultiColumn ComboBox, how?

P: n/a
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
Share this Question
Share on Google+
6 Replies


P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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.