For Each entry1 As KeyValuePair(Of KeyValuePair(Of String, String), String) In dic Dim newRow As DataRow = dt.NewRow() newRow("担当者名") = entry1.Key dt.Rows.Add(newRow) For Each entry2 As KeyValuePair(Of String, String) In entry1.Value newRow(entry2.Key) = entry2.Value Next Next
For Each entry1 As KeyValuePair(Of KeyValuePair(Of String, String), String) In dic Dim newRow As DataRow = dt.NewRow() newRow("担当者名") = entry1.Key dt.Rows.Add(newRow) For Each entry2 As KeyValuePair(Of String, String) In entry1.Value dt.Colums.Add(entry2.key) newRow(entry2.Key) = entry2.Value Next Next