/// <summary> /// Met la Facture à l'état Imprimée dans la Base de Données /// </summary> private void BTN_Imprimer_Click(object sender, EventArgs e) { if (MgtFacture.UpdateFactureImprimee(CodeFacture)) { MessageBox.Show("Facture Imprimée !"); DataGrid_Factures.DataSource = MgtFacture.GetFactures(); } }
private void FormSelection_Facture_Load(object sender, EventArgs e) { DataGrid_Factures.DataSource = MgtFacture.GetFactures(); DataGrid_Factures.Columns["dateFacture"].DefaultCellStyle.Format = "dd/MM/yyyy"; DataGrid_Factures.Columns["totalFacture"].DefaultCellStyle.Format = "0.00 €"; DataGrid_Factures.Columns["nomClient"].DisplayIndex = 1; DataGrid_Factures.Columns["totalFacture"].Width = 60; DataGrid_Factures.Columns["nomAnimal"].Width = 100; }