Bon j'ai un petit soucis.
Je remplis un DGV en passant par un Dataset seulement je voudrais remplir un DG plutot qu'un DGV et je ne sais pas comment convertir mon code pour qu'il marche pour un DG.

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
 
Dim Tab() As String = Split(data,SEP)
 
Dim i = 0 
Dim j = 0
 
For Each kvp as KeyValuePair(Of String,String) In DicEssais
     If Kvp.Value <> Nothing then
          If j > DGV.RowCount - 1 then
               Me.DGV.Tables("maTable").Rows.Add(kvp.value, Tab(i))
               Me.DGV.Refresh
          End If
          i += 1
          j += 1 
     End If      
Next kvp