I need to add three List to one datagrid. Each list should have its own row. The lists will only be created/changed once - this is during data import from a CSV file. I know how to add two lists to the datagrid by using the following code:
dtgCsvData.ItemsSource = time.Zip(temperature, (t, c) => new { time = t, temperature = c });
Where time and temperature are two of the three lists. The third and last list is named rate.
public List<string> temperature;
public List<string> time;
public List<string> rate;
However, I cannot see how I add the last list to the datagrid. How do I do what?
Aucun commentaire:
Enregistrer un commentaire