EntityDataSource.AutoSort 属性

定义

获取或设置一个值,该值指示 EntityDataSource 控件是否支持在运行时对数据进行排序。Gets or sets a value that indicates whether the EntityDataSource control supports sorting the data at run time.

public:
 property bool AutoSort { bool get(); void set(bool value); };
public bool AutoSort { get; set; }
member this.AutoSort : bool with get, set
Public Property AutoSort As Boolean

属性值

Boolean

如果用户可以对数据进行排序,则为 true;否则为 falsetrue if the user can sort the data; otherwise, false. 默认值为 trueThe default value is true.

注解

EntityDataSource控件支持对查询返回的数据进行自动排序。The EntityDataSource control supports automatically sorting the data returned by queries. AutoSort控件的属性 EntityDataSource 是一个布尔值属性,指示是否为绑定到数据控件的查询所返回的数据启用排序。The AutoSort property of the EntityDataSource control is a Boolean property that indicates whether sorting is enabled for data that is returned by queries that are bound to data controls. 当此属性设置为时 trueEntityDataSource 控件将根据 ObjectQuery<T> EntityDataSourceView 数据绑定控件提供的信息,将相应的查询生成器方法添加到中。When this property is set to true, the EntityDataSource control adds the appropriate query builder methods to the ObjectQuery<T> based on the information supplied to the EntityDataSourceView by the data-bound control.

属性的值 AutoSort 确定 CanSort CanRetrieveTotalRowCount 支持数据源的控件的和属性是否 EntityDataSourceViewtruefalseThe value of the AutoSort property determines whether the CanSort and CanRetrieveTotalRowCount properties of the EntityDataSourceView control that supports the data source is true or false.

适用于