this.ComboBoxSupportsQuestion.ItemsSource = qAManagerGridViewList;
this.ComboBoxSupportsQuestion.DisplayMemberPath = "UID";
this.ComboBoxSupportsQuestion.SelectedIndex = i;
// 遍历说有的 然后再取 序号 这样的话才可以为combox 赋值
private int GetSelectedSupportsQuestionIndexByContent(string content)
{
int result = 0;
foreach (QA_Manager qa_Manager in qAManagerGridViewList)
{
if (qa_Manager.UID == content)
{
break;
}
result ++;
}
return result;
}
读取