?
Solved

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

Posted on 2008-02-06
5
Medium Priority
?
315 Views
Last Modified: 2013-11-07
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.
0
Comment
Question by:mahmood66
  • 2
  • 2
4 Comments
 
LVL 5

Expert Comment

by:srinivasbn
ID: 20832618
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
 

Author Comment

by:mahmood66
ID: 20833306
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
 
LVL 5

Accepted Solution

by:
srinivasbn earned 1500 total points
ID: 20837699
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
 

Author Comment

by:mahmood66
ID: 20865978
Ok fine, i will try it, and let u know, I hope it will be very very help full.
0

Featured Post

Take Control of Web Hosting For Your Clients

As a web developer or IT admin, successfully managing multiple client accounts can be challenging. In this webinar we will look at the tools provided by Media Temple and Plesk to make managing your clients’ hosting easier.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
In real business world data are crucial and sometimes data are shared among different information systems. Hence, an agreeable file transfer protocol need to be established.
Hi, this video explains a free download that you can incorporate into your Access databases, or use stand-alone for contact management. Contacts -- Names, Addresses, Phone Numbers, eMail Addresses, Websites, Lists, Projects, Notes, Attachments…
If you are looking for an automated solution for backup single or multiple Office 365 user mailboxes to Outlook data file, then you can use Kernel Office 365 Backup & Restore tool. Go through the video to check out the steps to backup single or mult…

601 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question