MultiColumn ComboBox? - Open for Discussion.
Maybe I am missing something, but given the follow example taken from msdn:
' Declare comboBox1 as a ComboBox.
Friend WithEvents ComboBox1As System.Windows.Forms.ComboBox
' This method initializes the combo box, adding a large string
' array but limiting the drop-down size to six rows so the combo box
' doesn't cover other controls when it expands.
PrivateSub InitializeComboBox()
Me.ComboBox1 =New System.Windows.Forms.ComboBox
Dim employees()AsString =NewString() {"Hamilton, David", _
"Hensien, Kari", "Hammond, Maria", "Harris, Keith", _
"Henshaw, Jeff D.", "Hanson, Mark", "Harnpadoungsataya, Sariya", _
"Harrington, Mark", "Harris, Keith", "Hartwig, Doris", _
"Harui, Roger", "Hassall, Mark", "Hasselberg, Jonas", _
"Harnpadoungsataya, Sariya", "Henshaw, Jeff D.", "Henshaw, Jeff D.", _
"Hensien, Kari", "Harris, Keith", "Henshaw, Jeff D.", _
"Hensien, Kari", "Hasselberg, Jonas", "Harrington, Mark", _
"Hedlund, Magnus", "Hay, Jeff", "Heidepriem, Brandon D."}
ComboBox1.Items.AddRange(employees)
Me.ComboBox1.Location =New System.Drawing.Point(136, 32)
Me.ComboBox1.MaxDropDownItems = 5
Me.ComboBox1.DropDownStyle = ComboBoxStyle.DropDown
Me.ComboBox1.Name = "ComboBox1"
Me.ComboBox1.Size =New System.Drawing.Size(136, 81)
Me.ComboBox1.TabIndex = 0
Me.Controls.Add(Me.ComboBox1)
End Sub
This will display a dropdown list like this:
Hassall, Mark
Hasselberg, Jonas
Harnpadoungsataya, Sariya
Henshaw, Jeff D.
Henshaw, Jeff D.
Hensien, Kari
Harris, Keith
Henshaw, Jeff D.
IMHO, doesn't this look better?
Surname Given Names
Hassall Mark
Hasselberg Jonas
Harnpadoungsataya Sariya
Henshaw Jeff D.
Henshaw Jeff D.
Hensien Kari
Harris Keith
Henshaw Jeff D.
Now given a large company may have a few employees with the same name (ie. Henshaw, Jeff D.) you may need some additional information to determine which Henshaw you want. So lets add the Department they work in (or Employee Id or Phone or WhatEver).
Without MultiColumns:
Hassall, Mark - Shipping
Hasselberg, Jonas - Accounting
Harnpadoungsataya, Sariya - Production
Henshaw, Jeff D. - Shipping
Henshaw, Jeff D. - Accounting
Hensien, Kari - Production
Harris, Keith - Production
Henshaw, Jeff D. - Production
With MultiColumns:
Surname Given Names Department
Hassall Mark Shipping
Hasselberg Jonas Accounting
Harnpadoungsataya Sariya Production
Henshaw Jeff D. Shipping
Henshaw Jeff D. Accounting
Hensien Kari Production
Harris Keith Production
Henshaw Jeff D. Production
A MultiColumn ComboBox would be great! Also for table lookups to show the item's code and item's description.
Or am I missing the boat on this and this senario is better handled in a different way with a different control?
On a side note: I am very impressed that the ComboBox has been implemented onto the DataGridView! HooRay!! Now to get this with a MultiColumn option as well!!![]()

