combobox1 and combobox2

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mustafa shahid
    New Member
    • Aug 2006
    • 2

    combobox1 and combobox2

    i've problem that

    I've 2 combobox , in which 1 combobox (Combox_Pos) have 2 items and 2nd combobox (CBox_KnitStyle ) have no.of items

    Private Sub Form_app_Load(B yVal sender As System.Object, ByVal e As System.EventArg s) Handles MyBase.Load

    'combobox of POSITION
    Combox_Pos.Item s.Add("Active")
    Combox_Pos.Item s.Add("Inactive ")


    CBox_KnitStyle. Items.Add("117. 08")

    CBox_KnitStyle. Items.Add("117. 09")
    CBox_KnitStyle. Items.Add("117. 10")
    CBox_KnitStyle. Items.Add("117. 28")
    CBox_KnitStyle. Items.Add("176. 06")
    CBox_KnitStyle. Items.Add("176. 07")
    CBox_KnitStyle. Items.Add("176. 23")
    CBox_KnitStyle. Items.Add("279. 29")
    CBox_KnitStyle. Items.Add("279. 56")
    CBox_KnitStyle. Items.Add("279. 80")

    SO MY QUESTION IS THAT i would like when i click combobox1 and click 1st items then i would like 2 see in 2nd combobox in
    117.09
    117.10
    117.28
    279.80
  • mustafa shahid
    New Member
    • Aug 2006
    • 2

    #2
    what happen can no 1 do that

    Comment

    • Enyi
      New Member
      • Jul 2006
      • 38

      #3
      I think you would want to look into the 'selectedIndexC hanged' event of combobox1.

      Inside that event, check the 'selectedValue' property, if it is the one you want, clear the second combo box, then add some items to it.

      Comment

      • nmsreddi
        Contributor
        • Jul 2006
        • 366

        #4
        hi

        i didn't get what actually your problem is,i think u want to cascade the combo boxes i.e by changing(select ing) item in first combo then u want to display some thing in the second combo .

        if thatr is the case then u can go for combo_selectedi ndexchnged event and make auto post back property of first combo to true.this can solve your problem

        try it out.

        Comment

        Working...