C# ComboBox绑定及DataGridView禁止DataSource自动创建列
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;