LinqDataSourceSelectEventArgs.Arguments Propriedade
Definição
Obtém os valores que determinam como os dados são retornados.Gets values that determine how the data is returned.
public:
property System::Web::UI::DataSourceSelectArguments ^ Arguments { System::Web::UI::DataSourceSelectArguments ^ get(); };
public System.Web.UI.DataSourceSelectArguments Arguments { get; }
member this.Arguments : System.Web.UI.DataSourceSelectArguments
Public ReadOnly Property Arguments As DataSourceSelectArguments
Valor da propriedade
Um objeto que contém valores para determinar como os dados são retornados.An object that contains values for determining how the data is returned.
Comentários
Um controle vinculado a dados passa Propriedades para o LinqDataSource controle por meio da Arguments propriedade para especificar como a paginação e a classificação devem ocorrer.A data-bound control passes properties to the LinqDataSource control through the Arguments property in order to specify how paging and sorting should occur. Se a AutoPage propriedade ou a AutoSort propriedade for definida como true , o LinqDataSource controle classificará automaticamente ou páginas com base nas propriedades do controle associado a dados.If the AutoPage property or the AutoSort property is set to true, the LinqDataSource control automatically sorts or pages based on the properties from the data-bound control.
Você pode personalizar como os dados são classificados e paginados por meio de uma consulta, definindo as AutoPage AutoSort Propriedades e como false e, em seguida, criando um manipulador para o Selecting evento.You can customize how the data is sorted and paged from a query by setting the AutoPage and AutoSort properties to false and then creating a handler for the Selecting event. No manipulador de eventos, use a Arguments propriedade para recuperar as propriedades de classificação e de paginação do controle associado a dados.In the event handler, use the Arguments property to retrieve the sorting and paging properties from the data-bound control. Em seguida, personalize a consulta conforme necessário, com base nas propriedades da Arguments propriedade.Then customize the query as needed, based on the properties from the Arguments property. Se a RetrieveTotalRowCount Propriedade do DataSourceSelectArguments objeto for definida como true , você deverá retornar um valor para a TotalRowCount propriedade.If the RetrieveTotalRowCount property of the DataSourceSelectArguments object is set to true, you must return a value for the TotalRowCount property.