Ejemplo n.º 1
0
 protected internal virtual void OnCellEntered(CellEnteredMainEventArgs e)
 {
 }
Ejemplo n.º 2
0
 protected internal virtual void OnCellEntered(CellEnteredMainEventArgs e)
 {
 }
Ejemplo n.º 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);
            }
        }