Linked combo boxes (windows forms)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • LLM
    New Member
    • Apr 2007
    • 23

    #1

    Linked combo boxes (windows forms)

    I have 2 combo boxes I want to tie together. Right now I have

    C1.DisplayMembe r = "field1"
    C1.DisplayValue = "field2
    C2.DisplayMembe r = "field2"
    C2.DisplayValue = "field1"

    My thoughts were when they pick from one, it can change the other without a database hit and vice versa. I tried on selected index changed but it seems to be getting the value before the change.

    Any help would be greatly appreciated!
  • kenobewan
    Recognized Expert Specialist
    • Dec 2006
    • 4871

    #2
    Originally posted by LLM
    I have 2 combo boxes I want to tie together. Right now I have

    C1.DisplayMembe r = "field1"
    C1.DisplayValue = "field2
    C2.DisplayMembe r = "field2"
    C2.DisplayValue = "field1"

    My thoughts were when they pick from one, it can change the other without a database hit and vice versa. I tried on selected index changed but it seems to be getting the value before the change.

    Any help would be greatly appreciated!
    I believe that you would be better using Ajax or js. Do you mean change the selection or the value? HTH.

    Comment

    • LLM
      New Member
      • Apr 2007
      • 23

      #3
      I'm doing this in a Windows Form.

      Comment

      Working...