Comment faire : New Dictionary(Of Integer(), Double)
Bonjour à tous,
Je cherche à renseigner les valeurs d'un DataGridView dans un dictionnaire
Code:
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...