1.Run Designer→Columns→需要設置的列→Columns properties→ColumnsEdit→New→選擇(repositoryItemComboBox1) 2.給下拉框列賦值: List<Person> listP = AgencyManage.Instance.All ...
1.Run Designer→Columns→需要設置的列→Columns properties→ColumnsEdit→New→選擇(repositoryItemComboBox1)
2.給下拉框列賦值:
List<Person> listP = AgencyManage.Instance.AllPerList.FindAll(a=>a.IS_DELETED==1) ;
foreach (var item in listP)
{
repositoryItemComboBox1.Items.Add(item.Name);
}