473,387 Members | 1,897 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,387 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 3183
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: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.