1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
String requete = "SELECT * FROM ParamEssai WHERE Nom_essai ='"+nom+"'";
ds = SqlClient.GetDataTable(Globals.ConnectionString_TUB, requete, "Erreur lors de l'importation de la liste des MEF");
ds.Clear();
DataGridViewComboBoxColumn dc = new DataGridViewComboBoxColumn();
dc.DisplayStyle = DataGridViewComboBoxDisplayStyle.ComboBox;
DataTable dt = new DataTable();
DataTable essai = new DataTable();
String requete1 = "SELECT Type_essai_1,Type_essai_2,Type_essai_3,Type_essai_4 FROM ParamEssai WHERE Nom_essai ='" + nom + "'";
essai = SqlClient.GetDataTable(Globals.ConnectionString_TUB, requete1, "Erreur lors de l'importation de la liste des MEF");
dc.DataSource = essai;
grd.Columns.Insert(0, dc);
grd.DataSource = ds; |
Partager