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;
        }

 

读取

 posted on 2010-06-27 00:05  亮天使  阅读(1239)  评论(0编辑  收藏  举报