string sql = "SELECT id,项目名称 FROM uploder项目表";
DataTable dt = DBHepler.Query(sql);
cbxXm.DataSource = dt;
cbxXm.DisplayMember = "项目名称"; // Text,即显式的文本
cbxXm.ValueMember = "id"; // Value,即实际的值
cbxXm.SelectedIndex = 0;
05-13
2946
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
01-06
3583
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)