示例#1
0
        private void FillPhysicianCombo()//Method to fill the Physician Combo box
        {
            try
            {
                PharmacyDataTier bPharm = new PharmacyDataTier();
                DataSet          ds1    = new DataSet();
                ds1 = bPharm.FillCBOPhysician();

                //filling combobox
                cboPhysicianID.DataSource    = ds1.Tables[0];
                cboPhysicianID.DisplayMember = "combo";
                cboPhysicianID.ValueMember   = "physicianID";
            }
            catch (Exception ex)
            {
            }
        }