EntityDataSource.AutoSort Propriedade

Definição

Obtém ou define um valor que indica se o controle EntityDataSource dá suporte à classificação dos dados no tempo de execução.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

Valor da propriedade

Boolean

true Se o usuário puder classificar os dados; caso contrário, false .true if the user can sort the data; otherwise, false. O valor padrão é true.The default value is true.

Comentários

O EntityDataSource controle oferece suporte à classificação automática dos dados retornados por consultas.The EntityDataSource control supports automatically sorting the data returned by queries. A AutoSort Propriedade do EntityDataSource controle é uma propriedade booliana que indica se a classificação está habilitada para dados retornados por consultas que são associadas a controles de dados.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. Quando essa propriedade é definida como true , o EntityDataSource controle adiciona os métodos apropriados do construtor de consultas ao ObjectQuery<T> com base nas informações fornecidas para o EntityDataSourceView pelo controle associado a dados.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.

O valor da AutoSort propriedade determina se as CanSort Propriedades e CanRetrieveTotalRowCount do EntityDataSourceView controle que dão suporte à fonte de dados são true ou false .The 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.

Aplica-se a