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.
我有两个调用相同存储过程的网格视图。所以我想使用一个对象数据源。问题是当我取回表格时,我需要为每个网格视图对它进行不同的排序。所以我需要知道哪个gridview调用了存储过程。任何想法?
在每个 DataGrid 的 XAML 列中,设置SortMemberPath="NameOfProperty". 也可以在 Designer -> DataGrid->Properties->Columns->SortMemberPath 中添加
SortMemberPath="NameOfProperty"