请教,如何实现内联属性编辑窗的级联下拉框处理?即属性编辑窗属性1和属性2都为下拉框,但是属性2是根据属性1选择的项加载。请教如何实现?

解决方案 »

  1.   


    两个列表框联动,即两级联动菜单     //判断第一个列表框中被选中的值
         switch(ListBox1.SelectValue)
         {
    //如果是"A",第二个列表框中就添加这些:
    case "A"
          ListBox2.Items.Clear();
          ListBox2.Items.Add("A1");
          ListBox2.Items.Add("A2");
          ListBox2.Items.Add("A3");
    //如果是"B",第二个列表框中就添加这些:
    case "B"
          ListBox2.Items.Clear();
          ListBox2.Items.Add("B1");
          ListBox2.Items.Add("B2");
          ListBox2.Items.Add("B3");
         }
      

  2.   

    To sugarbelle:
    主要是请教如何在内联属性编辑窗中如何处理?