Exemplo n.º 1
0
        public override void DetachEditingControl()
        {
            base.DetachEditingControl();
            CControlEditionDataPlanning ctl = DataGridView.EditingControl as CControlEditionDataPlanning;

            ctl.MAJ_Champs();
        }
Exemplo n.º 2
0
        public override void InitializeEditingControl(int rowIndex, object
                                                      initialFormattedValue, DataGridViewCellStyle dataGridViewCellStyle)
        {
            // Set the value of the editing control to the current cell value.
            base.InitializeEditingControl(rowIndex, initialFormattedValue,
                                          dataGridViewCellStyle);

            CControlEditionDataPlanning ctl = DataGridView.EditingControl as CControlEditionDataPlanning;


            if (this.Value == DBNull.Value || this.Value == null)
            {
                this.Value = new CDataPlanning(typeof(CActeur), null);
            }
            ctl.InitControl((CDataPlanning)this.Value);
        }