Bonjour à tous,

Je cherche à renseigner les valeurs d'un DataGridView dans un dictionnaire

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
    Public Sub ReadMapCoefficcents(ByVal dataGridView As DataGridView, ByRef dictionary As Dictionary(Of Integer(), Double))
 
        Dim i As Integer, j As Integer
 
        For i = 1 To dataGridView.ColumnCount
            For j = 1 To dataGridView.RowCount
 
                dictionary.Add((i,j), CDbl(dataGridView.Item(i, j).Value))
            Next
        Next
 
    End Sub
Le problème est ligne 8, avec "Add((i,j)" qui ne convient pas...