示例#1
0
        public override object Clone()
        {
            LookupDropDownColumn col = base.Clone() as LookupDropDownColumn;

            col.DataSource       = _dataSource;
            col.LookupControl    = _lookupControl;
            col.LastDropDownSize = _lastDropDownSize;

            return(col);
        }
示例#2
0
        protected override void OnDropDownClosed(DropDownClosedEventArgs e)
        {
            LookupDropDownColumn column = GetCurrentColumn();

            if (column != null)
            {
                column.LastDropDownSize = e.DropdownSize;
            }


            base.OnDropDownClosed(e);
        }
示例#3
0
        protected override Size CalulateDropDownSize()
        {
            LookupDropDownColumn column = GetCurrentColumn();

            if (column != null && column.LastDropDownSize != Size.Empty)
            {
                return(column.LastDropDownSize);
            }
            else
            {
                return(base.CalulateDropDownSize());
            }
        }