C#中的绑定必须要求源实现IList接口,比如ArrayList对象就可以直接帮定
DataSet间接实现Ilist接口的也可以
设置ComboBox的绑定属性就行
ArrayList ll = new ArrayList();
ComboBox.DataSource=ll;

解决方案 »

  1.   

    public class USState
        {
            private string myShortName ;
            private string myLongName ;
        
            public  USState(string strLongName, string strShortName)
            {            this.myShortName = strShortName;
                this.myLongName = strLongName;
            }        public string ShortName
            {
                get
                {
                    return myShortName;
                }
            }        public string LongName
            {
            
                get
                {
                    return myLongName ;
                }
            }        public override string ToString()
            {
                return this.ShortName + " - " + this.LongName;
            }
        }
                ArrayList USStates = new ArrayList()    ;
                USStates.Add(new USState("Alabama", "AL"));
                USStates.Add(new USState("Washington", "WA"))  ; 
                USStates.Add(new USState("West Virginia", "WV"));
                USStates.Add(new USState("Wisconsin", "WI")) ;
                USStates.Add(new USState("Wyoming", "WY"));            ListBox1.SelectedValueChanged += new EventHandler(ListBox1_SelectedValueChanged);
                ListBox1.DataSource = USStates ;
                ListBox1.DisplayMember = "LongName"      ;
                ListBox1.ValueMember = "ShortName" ;
      

  2.   

    As follows:
    string st="hello";
    char[] ch=st.ToCharArray();
    comboBox1.DataSource=ch;
      

  3.   

    this.comboBox1.Items.Clear();
    this.comboBox1.Items.AddRange("性质,未定,全部".Split(','));
    this.comboBox1.SelectedIndex=0;