List<int> tempList = new List<int>();
foreach(string deptName in dictDepartments.Keys)
{
Debug.WriteLine("\"{0}\" occurs {1} time(s).", deptName, dictDepartments[deptName]);
DataGridTextColumn column = new DataGridTextColumn();
column.Header = deptName;
ResultsSummary.Columns.Add(column);
tempList.Add(dictDepartments[deptName]);
}
ResultsSummary.Items.Add(tempList);