Beispiel #1
0
        void PopupCellEditor_BeginEdit(object sender, I3CellEditEventArgs e)
        {
            I3Column column = e.Table.ColumnModel.Columns[e.Column];

            if (column.GetType() == typeof(I3PopupColumn))
            {
                I3PopupColumn popupColumn = (I3PopupColumn)column;
                popupColumn.OnBeforePopup(e);
            }
        }
Beispiel #2
0
        /// <summary>
        /// 设置TextBox的值
        /// Sets the initial value of the editor based on the contents of
        /// the Cell being edited
        /// </summary>
        protected override void SetEditValue()
        {
            //if (this.EditingCell.Data != null)
            //{
            if (this.EditingTable.ColumnModel.Columns[this.EditingCellPos.Column] is I3PopupColumn)
            {
                I3PopupColumn popupCol = (I3PopupColumn)this.EditingTable.ColumnModel.Columns[this.EditingCellPos.Column];

                this.DropDown.Control = popupCol.PopupControl;
                if (this.DropDown.Control != null)
                {
                    this.DropDown.Control.Visible = true;
                }
            }
            //}


            this.TextBox.Text = this.EditingTable.ColumnModel.Columns[this.EditingCellPos.Column].DataToString(this.EditingCell.Data);
        }