private void btnDropDown_Click(object sender, EventArgs e) { if (_Service == null) { _Service = new DropDownService(this); } buildColumns(); ChooserDropDown ctl = NewChooserDropDown(); ctl.CloseByDoubleClick = CloseDropDownByDoubleClick; ctl.DataSource = SetClass; if (SetClass != null) { if (SetClass.Count == 0) { SetClass.Load(); } SetClass.FilterApply(((Value == null) ? txtMain.Text : ""), ctl.GetColumnDescriptors()); } ctl.Value = Value; _Service.DropDownControl(ctl); }