Пример #1
0
        private void treeList1_CustomNodeCellEditForEditing(object sender, DevExpress.XtraTreeList.GetCustomNodeCellEditEventArgs e)
        {
            switch (e.Column.FieldName)
            {
            case "Remark":
                e.RepositoryItem = this.repositoryItemComboBox1;
                break;

            case "Calculation":
                e.RepositoryItem = this.repositoryItemButtonEdit1;
                break;

            case "Unit":
                e.RepositoryItem = this.ComboBoxDW;
                break;

            case "Feature":    //系统变量选择
                Filter_Parm();
                e.RepositoryItem = this.repositoryItemButtonEdit2;
                break;

            case "Quantities":    //系统变量选择

                e.RepositoryItem = this.repositoryItemCalcEdit1;
                break;

            default:
                break;
            }
        }
Пример #2
0
 private void TreeListCustomNodeCellEdit(object sender, DevExpress.XtraTreeList.GetCustomNodeCellEditEventArgs e)
 {
     System.Diagnostics.Debug.WriteLine("TreeListCustomNodeCellEdit");
 }