public override object Clone() { LookupDropDownColumn col = base.Clone() as LookupDropDownColumn; col.DataSource = _dataSource; col.LookupControl = _lookupControl; col.LastDropDownSize = _lastDropDownSize; return(col); }
protected override void OnDropDownClosed(DropDownClosedEventArgs e) { LookupDropDownColumn column = GetCurrentColumn(); if (column != null) { column.LastDropDownSize = e.DropdownSize; } base.OnDropDownClosed(e); }
protected override Size CalulateDropDownSize() { LookupDropDownColumn column = GetCurrentColumn(); if (column != null && column.LastDropDownSize != Size.Empty) { return(column.LastDropDownSize); } else { return(base.CalulateDropDownSize()); } }