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

  • Home
  • SEARCH
  • 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 7036675
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T01:27:09+00:00 2026-05-28T01:27:09+00:00

I have the following structure |-Table 1 |–PK IDT1 |–Name field |-Table 2 |–PK

  • 0

I have the following structure

|-Table 1
|--PK IDT1
|--Name field
|-Table 2
|--PK ID
|--FK IDT1
|--Name field

I want to bind Table 1 to combobox1 and Table 2 to combobox2 so as when someone selects a value in combobox1, combobox2 populates with only the rows with the FK IDT1 value from combobox1. Is this possible with databinding or do I have to code it?

  • 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-05-28T01:27:10+00:00Added an answer on May 28, 2026 at 1:27 am

    on the FORM_LOAD of your application just populate only ComboBox1. this psuedocode may help you:

    ON FORM_LOAD of your Application:

          Bind ComboBox1
          SET DISPLAY MEMBER Property of BomboBox1 to field
          SET VALUE MEMBER Property of ComboBox1 to IDT1
          Clear ComboBox1 current Text
    

    On the SelectionChangeCommitted of your ComboBox1

          Bind ComboBox2 using the following Query:
               SELECT ID, field FROM Table2 WHERE IDT1 = ComboBox1.SelectedValue.ToString
          SET DISPLAY MEMBER Property of ComboBox2 to field
          SET VALUE MEMBER Property of ComboBox2 to IDT
    

    The SelectedIndexChanged event is raised every time the SelectedIndex property value changes. If your ComboBox is initially empty then its SelectedIndex is -1. When you bind data to it the first item is selected by default and the SelectedIndex changes to 0. You are then explicitly setting the SelectedIndex to -1 again.

    If you’re only interested in knowing when the user makes a selection then handle the SelectionChangeCommitted event instead.

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

Sidebar

Related Questions

I have the following table structure: <tr> <th><label for=ctl00_bodyContent_username>username:</label></th> <td class=field><input name=ctl00$bodyContent$username type=text id=ctl00_bodyContent_username
I have the following structure: TABLE: Field ID | Name ---|-------- 1 | Email
I have the following MySQL table structure: num field company phone website 1 Gas
I have the following table structure. I want to select distinct CustomerId and CustomerName
I have the following database structure: Event table Id - Guid (PK) Name -
I have the following database structure: Sites table id | name | other_fields Backups
I have created a table in MSSQL having following structure - **Table Name -
I have the following table structure: Table Days: [_id,date,name] ^ | Table Events: [_id,
Say I have the following structure in a table: +-------------+----------------+-----------+ | category_id | name
I have following table structure: CREATE TABLE pilot_groups ( id INT PK, name VARCHAR(50),

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.