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 3661904
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T01:21:25+00:00 2026-05-19T01:21:25+00:00

I have cascading data-bound combo boxes, however, if the second of the two boxes

  • 0

I have cascading data-bound combo boxes, however, if the second of the two boxes does not have the value, I am trying to change the data source of the original process to the default selection.

However I am getting errors no matter what I try to do to get the combo box to clear.

    cboSubSystem.SelectedIndex = -1
    cboSubSystem.DataSource = Nothing
    Call cboSubSystem.Items.Clear()

    cboSubSystem.DataSource = oSubSystem.EntityList
    cboSubSystem.DisplayMember = oSubSystem.ORM.SubSystem_c
    cboSubSystem.ValueMember = oSubSystem.ORM.SubSystem_c

I also tried the double set for SelectedIndex like http://support.microsoft.com/default.aspx?scid=kb;en-us;327244

What am I doing wrong? I am sure it is something simple but I cannot get past this.

Thanks in advance.

EDIT:

  • EntityList is a generic list for a DTO
  • The dropdowns are using different data sources, when this one is set, I just call the sub routine to load the other one.
  • Errors:
    • Currently: “Items collection cannot be modified when the DataSource property is set.” at the Items.Clear
    • If I try to remove the clear, I get “Cannot bind to the new value member. Parameter name: value” at the valuemember set
  • 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-19T01:21:26+00:00Added an answer on May 19, 2026 at 1:21 am

    Found my problem. There was an event routine for index changed that loaded the second combo box. That combo box used the selected index, and apparently that locked the data source enough that I could not clear it. Was able to fix it with a re-arrangement of the refresh process.

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

Sidebar

Related Questions

So I have a cascading dropdown of sorts, but using List Boxes. When an
I'm trying to prevent circular (or even cascading) references in my data, and it
So I have a UserControl with some cascading DropDownList s on it. Selecting from
I have a Postgresql database on which I want to do a few cascading
Have you guys had any experiences (positive or negative) by placing your source code/solution
I have cascading jqGrids (State, then City, then Zipcode) on a View with multirow
I have a cascading DropDownList in an application. The contents of the cascading drop
While clensing PII from test data I have been stuck with a challenging scenario:
I have a table containing hierarchical data. There are currently ~8 levels in this
I have an address block on a view which can swap some data if

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.