Pick List, what do you use to create one?

Posted on 2005-04-11
Last Modified: 2010-04-23
Non-Web VB.NET application Pick List
Example:  User enters last name, and hits search button... You should be transported to a form that has a pick list of all the people with that last name.  You should see something like this:

Mathew       James      Somerset      NJ
Mathew       John        Princeton       NJ

Then user should select one of the Mathew's and hit o.k.

I want to create some type of pick list like this.  I am not using bound controls.  What control should I use?  What do you usually use for a pick list?  DataGrid?  Or some third party control?

Can you give some programming code as to how to populate the pick list?  (Doesn't have to be complete)   For example, "MyDataGrid.row(0).col(1).Text = ...."
This is not how to do it, but I am asking how to do it.  Because remember, I am not using data binding.   There should also be some way to know which row is selected...

By the way, I have a similar question for web applications in the appropriate topic area...

Question by:kamleshmistry
    LVL 14

    Assisted Solution

    A datagrid can do the job.
    Other ways also exists, e.g. a multi-column combobox:
    LVL 44

    Accepted Solution

    or even a ListBox or ListView control.  Any other these can be used, with equal utility.  The choice is up to you, depending on the LOOK that you want to have to your forms.


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Do You Know the 4 Main Threat Actor Types?

    Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

    Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
    The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (…
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

    759 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

    Need Help in Real-Time?

    Connect with top rated Experts

    10 Experts available now in Live!

    Get 1:1 Help Now