コード例 #1
0
        protected override void OnLoad(EventArgs e)
        {
            _listCom = DAL.GetComDétail();
            dgvCommandes.DataSource = _listCom;
            #region Paramétrage dgvCommandes
            dgvCommandes.Columns["DateLivraion"].Visible  = false;
            dgvCommandes.Columns["NbProduitsCom"].Visible = false;
            dgvCommandes.Columns["MontantCom"].Visible    = false;
            dgvCommandes.Columns["Frais"].Visible         = false;
            dgvCommandes.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.DisplayedCells;
            dgvCommandes.ReadOnly            = true;
            dgvCommandes.Columns["DateCommande"].Resizable = DataGridViewTriState.True;
            #endregion

            DAL.ExporterXml_XmlWriter(_listCom);

            base.OnLoad(e);
        }