LinqDataSourceView.CanSort 属性
定义
获取一个值,该值指示与当前 LinqDataSource 控件相关联的 LinqDataSourceView 对象是否支持对检索数据的排序视图。Gets a value that indicates whether the LinqDataSourceView object that is associated with the current LinqDataSource control supports a sorted view of the retrieved data.
public:
virtual property bool CanSort { bool get(); };
public override bool CanSort { get; }
member this.CanSort : bool
Public Overrides ReadOnly Property CanSort As Boolean
属性值
true.true.
注解
LinqDataSourceView即使数据显示控件不使用排序,对象也始终支持排序。The LinqDataSourceView object always supports sorting even if data presentation control does not use sorting. 当 LinqDataSourceView 属性设置为时 false ,可以手动对事件中的数据进行排序 Selecting 。When the LinqDataSourceView.AutoSort property is set to false, you can manually sort the data in the Selecting event.