private void InitialiserGrid() // intitialisation de la liste afficher
        {
            _Gnotes = new GererNotes();
            List <notes> listn = _Gnotes.ListerNotes(E.codeElev);


            dataGridView1.DataSource = listn;
        }
        public Form2(eleves E)
        {
            InitializeComponent();
            this.E      = E;
            _Gmatières  = new GererMatieres();
            _Gnotes     = new GererNotes();
            label4.Text = E.codeElev;
            List <matieres> Listmat = _Gmatières.RechercheMs(E);

            foreach (matieres dr in Listmat)
            {
                comboBox1.Items.Add(dr.codeMat);
            }
            InitialiserGrid();
        }