Пример #1
0
 protected internal virtual void OnCellEntered(CellEnteredMainEventArgs e)
 {
 }
Пример #2
0
 protected internal virtual void OnCellEntered(CellEnteredMainEventArgs e)
 {
 }
Пример #3
0
        protected internal virtual void OnCellEntered(CellEnteredMainEventArgs e, Resco.Controls.AdvancedComboBox.AdvancedComboBox parent)
        {
            object constantData;
            switch (e.Cell.CellSource.SourceType)
            {
                case CellSourceType.Constant:
                    constantData = e.Cell.CellSource.ConstantData;
                    break;

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

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

                case CellSourceType.DisplayMember:
                    if (e.Cell.CellSource.DisplayMember)
                    {
                        constantData = e.ListItem[parent.DisplayMember];
                    }
                    else
                    {
                        constantData = null;
                    }
                    break;

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