예제 #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());
            }
        }