protected override void OnDoubleClick(DataGridViewCellEventArgs e)
        {
            if (Span.SpanPos == SpanPosition.Spanned)
            {
                EasyGridTextBoxCell cell = (Span.SpanBaseCell as EasyGridTextBoxCell);
                if (cell != null)
                {
                    cell.OnDoubleClick(e);
                }
            }
            else if (_enabled)
            {
                IEasyGridCell baseCell = this.Span.SpanBaseCell;
                if (baseCell.Equals(this) == false)
                {
                    _parent.InvalidateCell(baseCell as DataGridViewCell);
                    base.OnDoubleClick(e);
                    return;
                }

                if (_isEditable)
                {
                    _parent.CurrentCell = this;
                    _parent.BeginEdit(true);
                }
                base.OnDoubleClick(e);
            }
        }
Exemple #2
0
 void RePaint()
 {
     try
     {
         _parent.InvalidateCell(this.HeaderCell);
     }
     catch { }
 }
        protected override void OnDoubleClick(DataGridViewCellEventArgs e)
        {
            IEasyGridCell baseCell = this.Span.SpanBaseCell;// GetSpanBaseCell();

            if (_isEditable)
            {
                _parent.CurrentCell = baseCell as DataGridViewCell;
                _parent.BeginEdit(true);
            }

            if (baseCell.Equals(this) == false)
            {
                _parent.InvalidateCell(baseCell as DataGridViewCell);
                base.OnDoubleClick(e);
                return;
            }

            base.OnDoubleClick(e);
        }