Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想将 a 显示Dictionary<string, ObservableCollection<string>>到 wpf 数据网格中。键是列,值是列的行,如下所示:
Dictionary<string, ObservableCollection<string>>
键1 键2
值 1 键 1 值 1 键 2
值 2 键 1 值 2 键 2
值 3 键 1 值 3 键 2
我希望能够显示、修改列和行的值,以便Dictionary<string, ObservableCollection<string>> 以一种简单的方式获得支持。
在此先感谢您的帮助。
您可以使用 aDictionary<string, ObservableCollection<string>>并将字符串绑定到列标题,并将 the 绑定ObservableCollection<string>>到列。
ObservableCollection<string>>