MultiColumn ComboBox, how?

  • Thread starter Thread starter Lars Netzel
  • Start date Start date
L

Lars Netzel

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
 
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
 
Hi,

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

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

Ken
----------------------
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
 
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
 
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top