Пример #1
0
        public virtual void hideCustomCtrl()
        {
            if (m_customCtrl != null)
            {
                Debug.WriteLine("hideDtp");
                m_customCtrl.hide();

                if (m_customCtrl.isChanged())
                {
                    var val = m_customCtrl.getValue();
                    this.CurrentCell.Value = m_customCtrl.getValue();
                }

                this.Controls.Remove(m_customCtrl.getControl());
                m_customCtrl.Dispose();
                m_customCtrl = null;
            }
        }
Пример #2
0
        private void hideCustomCtrl()
        {
            if (m_customCtrl != null)
            {
                Debug.WriteLine("hideDtp");
                m_customCtrl.hide();

                if (m_customCtrl.isChanged())
                {
                    m_dataGridView.CurrentCell.Value = m_customCtrl.getValue();
                }

                m_dataGridView.Controls.Remove(m_customCtrl.getControl());
                m_customCtrl = null;
            }
        }