Beispiel #1
0
        public Form_addFiliere()
        {
            InitializeComponent();
            DataTable dt = Class_Filiere.PS_SelectNivau();

            cmbNivau.DisplayMember = "Label";
            cmbNivau.ValueMember   = "idNiveau";
            cmbNivau.DataSource    = dt;
        }
        private void GetNivau()
        {
            DataTable dt = Class_Filiere.PS_SelectNivau();

            if (dt.Rows.Count > 0)
            {
                cmbniveau.ValueMember   = "idNiveau";
                cmbniveau.DisplayMember = "Label";
                cmbniveau.DataSource    = dt;
            }
        }