Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8270169
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T06:29:48+00:00 2026-06-08T06:29:48+00:00

I have a table with the Field gender that I would like to turn

  • 0

I have a table with the Field gender that I would like to turn into a custom control (Edit:ComboBox) with fields of Male and Female. Relatively new to Lightswitch and I am not sure how to go about doing that aspect. I have tried looking but couldn’t find any information. I am using the 2012RC. Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T06:29:51+00:00Added an answer on June 8, 2026 at 6:29 am

    There are four ways to create an autocomplete box:

    1. Foreign Key Constraint
    2. Local Property
    3. Local Variable
    4. Choice List

    There’s a good blog post describing how to accomplish this goal through the methods described above.

    For your specific scenario, I would recommend using a foreign key constraint to ensure data integrity is never violated in or outside of the LightSwitch application. All you need to do is create a foreign key constraint between the gender field in your data table and the primary key of a gender lookup table and you import both tables under the same data source. LightSwitch will automatically create this field as a combo box in data grids and detail forms. If you have multiple text fields in your gender lookup table, it will return the first string field as the displayed value by default. You can override this to select another field to display by updating the Summary Property in the gender lookup table.

    Regarding terminology, drop down boxes are called autocomplete boxes in LightSwitch, so Googling for LightSwitch autocomplete will return several good articles and videos on how to create multi-column autocompletes, autocompletes with embedded images, sorting autocomplete boxes, filtering the available displayed values (such as filtering to current active products), using autocomplete boxes to filter other forms, etc.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have user table having fields gender and first name like this.. The value
I have table that contain date and time field. id|date|time ========= 1|01/01/2001|10:45 2|01/02/2002|11:45 3|01/03/2003|12:45
Suppose I have table A with a field that can be either 1 or
Assuming that we have the following table: Person: PersonID, Name, Age, Gender And we
I have a table named tbl_populations having following fields: pk_populationid,residence,value,aspect,gender,fk_tbl_states_stateid I am trying to
I have a user table that has many columns, it looks roughly like this:
i have table name is ads like that: id ad_country ad_gender ad_birthday 1 05
If I have a table field named 'description', what would be the SQL (using
I have a table whose schema is declare @tbl table(field varchar(20)) insert into @tbl
I have a table that looks like the following: ID Key Value Order 1

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.