string SQL="SELECT * FROM MobileBrand"; DataTable dt=new DataTable(); SqlDataAdapter adapter = new SqlDataAdapter(SQL,ConStr); adapter.Fill(dt); this.cboBrand.DisplayMember="Brand"; this.cboBrand.ValueMember="BrandID"; this.cboBrand.DataSource = dt;
1 回答
- 1 回答
- 0 关注
- 1290 浏览
添加回答
举报
0/150
提交
取消