예제 #1
0
        public DropDownUserCellRenderer(GridControlBase grid, GridCellModelBase cellModel)
            : base(grid, cellModel)
        {
            this.ddUser         = ((DropDownUserCellModel)this.Model).ddUser;
            this.ddUser.Visible = false;
            DropDownPart        = new GridDropDownCellImp(this);
            DropDownButton      = new GridCellComboBoxButton(this);

            //hook the usercontrol save and cancel events...
            this.ddUser.UserControlSave   += new EventHandler(user_Save);
            this.ddUser.UserControlCancel += new EventHandler(user_Cancel);
        }
예제 #2
0
 public DropDownUserCellModel(GridModel grid, DropDownUser ddUser)
     : base(grid)
 {
     this.ddUser   = ddUser;
     ButtonBarSize = new Size(14, 14);
 }