ComboBox 绑定customers( IList customers = new List();) 报错
asp_c 2007-10-13 02:37:49 IList<CustomInfo> customers = new List<CustomInfo>();//CustomerInfo是客户实体类
customers=customer.GetCustomers();//取所有客户信息
cbxCustomer.DataSource = customers;//cbxCustomer是ComboBox控件--------报错:未将对象引用设置到对象的实例
cbxCustomer.ValueMember = "CustomerID";
cbxCustomer.DisplayMember = "CustomerName";