1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
| Dictionary<string, string> dico = new Dictionary<string, string>();
private void ConfigSite_Load(object sender, EventArgs e)
{
try
{
dico.Add("DT2500", "0");
dico.Add("DT2522", "1");
DGV_ConfigSite.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
DGV_ConfigSite.MultiSelect = false;
Parametre_BindingSource.DataSource = dico;
Parametre_BindingSource.ResetBindings(false);
DGV_ConfigSite.DataSource = Parametre_BindingSource;
Parametre_BindingSource.DataSource = dico;
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
} |
Partager