private void Form1_Load(object sender, EventArgs e) { UserList users = new UserList(); users.Add(new User("Bill", "b", 20)); users.Add(new User("Jeck", "j", 14)); users.Add(new User("Stan", "s", 18)); users.Add(new User("Bruce", "b", 29)); users.Add(new User("Stanny", "s", 18)); SortAndSearchLookUpEdit sortAndSearchLookUpEdit = new SortAndSearchLookUpEdit(); sortAndSearchLookUpEdit.Bounds = new Rectangle(10, 50, 100, 20); sortAndSearchLookUpEdit.Properties.DataSource = users; sortAndSearchLookUpEdit.Properties.DisplayMember = "Name"; sortAndSearchLookUpEdit.Properties.SearchMode = DevExpress.XtraEditors.Controls.SearchMode.OnlyInPopup; Controls.Add(sortAndSearchLookUpEdit); }
public SortAndSearchPopupLookUpEditForm(SortAndSearchLookUpEdit ownerEdit) : base(ownerEdit) { }