private void ChargeGrille() { kDgvTotalCompte.DataSource = null; if (kCbListTotalCompte.SelectedValue != null) { DataSet ds = Compte.DataSetTotalComptes(TotalCompte.Charge((int)kCbListTotalCompte.SelectedValue)); kDgvTotalCompte.DataSource = ds; kDgvTotalCompte.DataMember = "TotalComptes"; kDgvTotalCompte.Columns["Pointé"].DefaultCellStyle.Format = "c"; kDgvTotalCompte.Columns["Pointé"].DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight; kDgvTotalCompte.Columns["A venir"].DefaultCellStyle.Format = "c"; kDgvTotalCompte.Columns["A venir"].DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight; kDgvTotalCompte.Columns["Solde"].DefaultCellStyle.Format = "c"; kDgvTotalCompte.Columns["Solde"].DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight; } }