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.
我有 Observable 集合,其中包含名称、地址、部门等标题名称。我想在可观察的集合上方显示不同的名称,如员工姓名、位置和组
有人可以帮我解决这个问题。
提前致谢
您可以自己选择每列的标题:
<DataGrid ItemsSource="{Binding Path=YourObservableCollection}"> <DataGrid.Columns> <DaraGridTextColumn Header="Employee Name" Binding="{Binding Path=Name}"/> <DataGrid.Columns> </DataGrid>