ComboBox綁定
DataTable dt = new DataTable
dt = // 數據集
this.DisplayMember = //要顯示屬性的字段
this.DisplayMember.ValueMember =//要顯示值的字
this.comboBox.DataSource = dt;
this.DisplayMember.ValueMember =//要顯示值的字
this.comboBox.DataSource = dt;
DataGridView禁止DataSource自動創建列
this.DataGridView.AutoGenerateColumns = false;