sqlcon.Open();
SqlDataReader dr = sqlcomm.ExecuteReader();
while (dr.Read())
{
this.comboBox1.Items.Add(dr["字段名"]);
}
dr.Close();
sqlcon.Close();
从数据库获取table 对象设置DataSource =table