Réponse acceptée !
Voilà, j'espère que t'es en vb.net, sinon je te garantie rien.. :
Dim st As String = "SELECT table1.champ1, table1.champ2, table2.champ1, tables 2.champ2 from table1 inner join table2 on table1.champ1 = table2.champ1 where table1.champ2 like '"+ un_string+"'"
Dim oledb As New OleDbDataAdapter(st, cn)
k = oledb.Fill(dsdatk, "Table1")
dtgrid.DataSource = dsdatk.Tables("Table1")
dtgrid.SuspendLayout()
Dim ag As New DataGridTableStyle()
Dim bg As DataGridColumnStyle
bg = New DataGridTextBoxColumn()
bg.MappingName = "table1.champ1"
bg.HeaderText = "Youpi"
bg.Width = 60
ag.GridColumnStyles.Add(bg)
bg = New DataGridTextBoxColumn()
bg.MappingName = "table2.champ2"
bg.HeaderText = "Bezeichnung"
bg.Width = 120
ag.GridColumnStyles.Add(bg)
ag.MappingName = "Table1"
ag.AlternatingBackColor = Color.AliceBlue
Try
dtgrid.TableStyles.Add(ag)
Catch ex As Exception
End Try
dtgrid.ResumeLayout()
.Maytheforcebewithyou.Maxime.