Пример #1
0
 protected internal virtual void OnCellEntered(CellEnteredMainEventArgs e)
 {
     Cell cell = e.Cell;
     Cell cell1 = this.CellTemplates[e.CellIndex];
 }
Пример #2
0
 protected internal virtual void OnCellEntered(CellEnteredMainEventArgs e)
 {
     Cell cell  = e.Cell;
     Cell cell1 = this.CellTemplates[e.CellIndex];
 }
Пример #3
0
        protected virtual void OnCellEntered(CellEnteredMainEventArgs e)
        {
            object constantData;
            switch (e.Cell.CellSource.SourceType)
            {
                case CellSourceType.Constant:
                    constantData = e.Cell.CellSource.ConstantData;
                    break;

                case CellSourceType.ColumnIndex:
                    constantData = e.Row[e.Cell.CellSource.ColumnIndex];
                    break;

                case CellSourceType.ColumnName:
                    constantData = e.Row[e.Cell.CellSource.ColumnName];
                    break;

                default:
                    constantData = null;
                    break;
            }
            e.Cell._FireCellEntered(new CellEnteredEventArgs(e.Cell, e.Row, constantData));
            if (this.CellEntered != null)
            {
                this.CellEntered(this, e);
            }
        }