DataGridColumn.CanUserSort 属性     
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取或设置一个值,该值指示用户能否通过单击列标题对列进行排序。
public:
 property bool CanUserSort { bool get(); void set(bool value); };public bool CanUserSort { get; set; }member this.CanUserSort : bool with get, setPublic Property CanUserSort As Boolean属性值
如果用户可对列进行排序,则为 true;否则为 false。 已注册的默认值为 true。 有关可能影响该值的因素的信息,请参见 DependencyProperty。
注解
可以通过设置 属性为所有列设置 DataGrid.CanUserSortColumns 此排序行为。 
              DataGridColumn.CanUserSort如果 同时设置了 属性和 DataGrid.CanUserSortColumns 属性,则 的值false优先于 的值true。