Bonjour,
Voila j'ai un dataGrid qui se remplit de la manière suivante :
J'aimerais que la colonne numinter soit invisible et qu'elle se remplisse à l'aide d'un résultat d'un label.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 string RelationClientele = ("SELECT RC_NUMINTER as numinter, RC_DHRELCL as DateHeure, RC_CNURELCL as Contenu, RC_TELCTACT as Tel, RC_MOYCTACT as MoyenContact FROM RELATION_CLIENTELE WHERE RC_NUMINTER = '" + NumInter.Text + "'"); connection = new SqlConnection("Data Source=SNCK96400031;Initial Catalog=DistribInfo;Integrated Security=SSPI"); connection.Open(); try { SqlDataAdapter dataAdapter1 = new SqlDataAdapter(RelationClientele, connection); dataAdapter1.Fill(ds1,"RelationClientele"); dataGrid2.DataSource = ds1; dataGrid2.DataMember = "RelationClientele"; } catch(Exception ex) { MessageBox.Show(ex.ToString()); } finally { connection.Close(); }
Comment puis-je faire??
Merci d'avance!!
Partager