private void comboBoxEdit1_Properties_MouseEnter(object sender, EventArgs e) { comboBoxEdit1.Properties.Items.Clear(); searchdispatchdatatable = SQLMethod.Search_dispatchdatatable(); for (int i = 0; i < searchdispatchdatatable.Count; i++) { comboBoxEdit1.Properties.Items.Add(searchdispatchdatatable[i].projectno); } }