日期:2014-05-18 浏览次数:20844 次
if (this.gridView_TestCaseScripts.Columns[STR_TESTSCRIPTTABLE_COMMAND].ColumnEdit is RepositoryItemComboBox) { ((RepositoryItemComboBox)gridView_TestCaseScripts.Columns[STR_TESTSCRIPTTABLE_COMMAND].ColumnEdit).Items.Clear(); ((RepositoryItemComboBox)gridView_TestCaseScripts.Columns[STR_TESTSCRIPTTABLE_COMMAND].ColumnEdit).BeginUpdate(); foreach (string strCommand in _parseheader.Power_Command) { ((RepositoryItemComboBox)gridView_TestCaseScripts.Columns[STR_TESTSCRIPTTABLE_COMMAND].ColumnEdit).Items.Add(strCommand); } ((RepositoryItemComboBox)gridView_TestCaseScripts.Columns[STR_TESTSCRIPTTABLE_COMMAND].ColumnEdit).Sorted = true; ((RepositoryItemComboBox)gridView_TestCaseScripts.Columns[STR_TESTSCRIPTTABLE_COMMAND].ColumnEdit).EndUpdate(); }
------解决方案--------------------
GridControl
------解决方案--------------------
this.gridColumn1.ColumnEdit = this.repositoryItemComboBox2;