Exemple #1
0
        private void Site_QuanliPNK_Load(object sender, EventArgs e)
        {
            DataTable chinhanhs = new BLL.DICTON_BLL().selectall();

            cbx_chinhanh.DataSource    = chinhanhs;
            cbx_chinhanh.DisplayMember = "NAME";
            cbx_chinhanh.ValueMember   = "ID";
        }
Exemple #2
0
        private void frmLogin_Load(object sender, EventArgs e)
        {
            DataTable chinhanhs = new BLL.DICTON_BLL().selectall();

            cbchinhanh.DataSource = chinhanhs;
            DataRow dtr = chinhanhs.NewRow();

            dtr["NAME"] = "TRUNGTAMQUANLY";
            dtr["ID"]   = 0;
            chinhanhs.Rows.Add(dtr);
            cbchinhanh.DisplayMember = "NAME";
            cbchinhanh.ValueMember   = "ID";
        }