110,534
社区成员
发帖
与我相关
我的任务
分享
this.comboBoxEdit1.Properties.NullText = "请选择..."; // 如果值为null,就显示 请选择
DataTable dt = UserInfo.GetAreaDataTable();
for (int i = 0; i < dt.Rows.Count; i++) // 循环Rows属性
{
// 将 每行中单元格值为BMMC的 值 显示到combobox的items属性中。
comboBoxEdit1.Properties.Items.Add(dt.Rows[i]["BMMC"].ToString());
}