Ejemplo n.º 1
0
        private void cboTimDiaChi_Click(object sender, EventArgs e)
        {
            cboTimDiaChi.SelectionStart = cboTimDiaChi.Text.Length;
            BUS_tblGiaovien busGv = new BUS_tblGiaovien();
            DataTable       tb    = busGv.getField("DiaChi");

            cboTimDiaChi.Items.Clear();
            cboTimDiaChi.Items.Add("Tất cả");
            for (int i = 0; i < tb.Rows.Count; i++)
            {
                cboTimDiaChi.Items.Add(tb.Rows[i]["DiaChi"].ToString());
            }
        }