SqlDataAdapter da = new SqlDataAdapter(cmd); DataSet ds = new DataSet(); da.Fill(ds); this.comboBox1.DataSource = ds.Table[0]; this.comboBox1.DisplayMember = "xx"; //对应的数据库中想要显示的列名
博客园 © 2004-2025 浙公网安备 33010602011771号 浙ICP备2021040463号-3