Help, How can i Display Multiplate column in one combo.

How can i display multiple column in one combo with out concatenation operator in query, because, if i use concatenation then all column will not be in allignment. so please tell me  any method, which will help me to display mutiplse column in one combo. If that combo will be in datagridview that will be 10 time better for me. other wise in case of simple combo is also ok.
mahmood66Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

srinivasbnCommented:
Hi
There is no such option is available directly. But the same thing you can do in another way by using the another controls Listbox or ListView. When the dropdown event is fired immediately by displaying these controls with content it will look like a dropdown list with multiple columns.

SrinivasBN
0
mahmood66Author Commented:
Oh , Good Idia, i appriciate it.  But if give me some sample code if u have, that will save my time, I will be thank ful.
0
srinivasbnCommented:
Hi
 Here is the code

    Private Sub ComboBox1_DropDown(ByVal sender As Object, ByVal e As System.EventArgs) Handles ComboBox1.DropDown
        ListView1.Visible = True
        ListView1.Focus()
        ListView1.BringToFront()
    End Sub

    Private Sub ListView1_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles ListView1.SelectedIndexChanged
        ComboBox1.Text = ListView1.SelectedItems.Item(0).Text
        ListView1.Visible = False
    End Sub

Srinivas.BN

Image1.JPG
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
mahmood66Author Commented:
Ok fine, i will try it, and let u know, I hope it will be very very help full.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.