protected virtual void Detach()
        {
            if (m_GridView == null)
            {
                return;
            }
            if (m_Column != null)
            {
                m_Column.Dispose();
            }
            if (m_Edit != null)
            {
                m_GridView.GridControl.RepositoryItems.Remove(m_Edit);
                m_Edit.Dispose();
            }

            m_GridView.Click -= View_Click;
            m_GridView.CustomDrawColumnHeader  -= View_CustomDrawColumnHeader;
            m_GridView.CustomDrawGroupRow      -= View_CustomDrawGroupRow;
            m_GridView.CustomUnboundColumnData -= view_CustomUnboundColumnData;
            m_GridView.RowStyle -= view_RowStyle;
            if (m_ClearOnMouseDown)
            {
                m_GridView.MouseDown -= view_MouseDown;
            }

            m_GridView = null;
        }
        protected virtual void Detach()
        {
            if (_view == null)
            {
                return;
            }
            if (column != null)
            {
                column.Dispose();
            }
            if (edit != null)
            {
                _view.GridControl.RepositoryItems.Remove(edit);
                edit.Dispose();
            }

            _view.Click -= new EventHandler(View_Click);
            _view.CustomDrawColumnHeader  -= new ColumnHeaderCustomDrawEventHandler(View_CustomDrawColumnHeader);
            _view.CustomDrawGroupRow      -= new RowObjectCustomDrawEventHandler(View_CustomDrawGroupRow);
            _view.CustomUnboundColumnData -= new CustomColumnDataEventHandler(view_CustomUnboundColumnData);
            _view.KeyDown  -= new KeyEventHandler(view_KeyDown);
            _view.RowStyle -= new RowStyleEventHandler(view_RowStyle);

            _view = null;
        }
 protected virtual void Detach()
 {
     if (this.popupContainerView == null)
     {
         return;
     }
     if (column != null)
     {
         column.Dispose();
     }
     if (edit != null)
     {
         this.popupContainerView.GridControl.RepositoryItems.Remove(edit);
         edit.Dispose();
     }
     this.popupContainerView.Click -= new EventHandler(View_Click);
     this.popupContainerView.CustomDrawColumnHeader  -= new ColumnHeaderCustomDrawEventHandler(View_CustomDrawColumnHeader);
     this.popupContainerView.CustomUnboundColumnData -= new CustomColumnDataEventHandler(view_CustomUnboundColumnData);
 }
        private void RemoveEvents()
        {
            if (_tablo == null) return;
            _column?.Dispose();

            if (_checkEdit != null)
            {
                _tablo.GridControl.RepositoryItems.Remove(_checkEdit);
                _checkEdit.Dispose();

            }
            _tablo.Click -= Tablo_Click;
            _tablo.CustomDrawColumnHeader -= Tablo_CustomDrawColumnHeader;
            _tablo.CustomUnboundColumnData -= Tablo_CustomUnboundColumnData;
            _tablo.KeyDown -= Tablo_KeyDown;
            _tablo.RowStyle -= Tablo_RowStyle;

            _tablo = null;

        }
Exemple #5
0
 protected virtual void Detach()
 {
     if (_view == null)
     {
         return;
     }
     if (_column != null)
     {
         _column.Dispose();
     }
     if (_edit != null)
     {
         _view.GridControl.RepositoryItems.Remove(_edit);
         _edit.Dispose();
     }
     _view.CustomDrawColumnHeader  -= View_CustomDrawColumnHeader;
     _view.CustomDrawGroupRow      -= View_CustomDrawGroupRow;
     _view.CustomUnboundColumnData -= view_CustomUnboundColumnData;
     _view.MouseDown -= view_MouseUp;
     _view            = null;
 }
Exemple #6
0
        protected virtual void Detach()
        {
            if (View == null)
            {
                return;
            }
            if ((_CheckColumn != null))
            {
                _CheckColumn.Dispose();
            }
            if ((_CheckEdit != null))
            {
                View.GridControl.RepositoryItems.Remove(_CheckEdit);
                _CheckEdit.Dispose();
            }
            _GridView.Click -= View_Click;
            _GridView.CustomDrawColumnHeader  -= View_CustomDrawColumnHeader;
            _GridView.CustomDrawGroupRow      -= View_CustomDrawGroupRow;
            _GridView.CustomUnboundColumnData -= (view_CustomUnboundColumnData);
            //_GridView.RowStyle -= view_RowStyle;

            View = null;
        }
Exemple #7
0
        protected virtual void Detach()
        {
            if (view == null)
            {
                return;
            }
            if (column != null)
            {
                column.Dispose();
            }
            if (edit != null)
            {
                view.GridControl.RepositoryItems.Remove(edit);
                edit.Dispose();
            }

            view.CustomDrawColumnHeader  -= View_CustomDrawColumnHeader;
            view.CustomDrawGroupRow      -= View_CustomDrawGroupRow;
            view.CustomUnboundColumnData -= view_CustomUnboundColumnData;
            view.RowStyle  -= view_RowStyle;
            view.MouseDown -= view_MouseDown;

            view = null;
        }