C# combbox datatable 赋值

            Driver driver = new Driver();
            DataTable dt = driver.Query();
           
            this.comboBox1.DataSource = dt;
            this.comboBox1.DisplayMember = "name";
            this.comboBox1.ValueMember = "id";
原文地址:https://www.cnblogs.com/baishahe/p/1102589.html