DataSourceView.CanPage Propriété
Définition
Obtient une valeur indiquant si l'objet DataSourceView associé à l'objet en cours DataSourceControl prend en charge la consultation des données récupérées par la méthode ExecuteSelect(DataSourceSelectArguments).Gets a value indicating whether the DataSourceView object associated with the current DataSourceControl object supports paging through the data retrieved by the ExecuteSelect(DataSourceSelectArguments) method.
public:
virtual property bool CanPage { bool get(); };
public virtual bool CanPage { get; }
member this.CanPage : bool
Public Overridable ReadOnly Property CanPage As Boolean
Valeur de propriété
true
si l'opération est prise en charge ; sinon, false
.true
if the operation is supported; otherwise, false
. L'implémentation de la classe de base retourne false
.The base class implementation returns false
.
Remarques
Un contrôle lié aux données peut demander la pagination en ajoutant le Page champ à l' DataSourceSelectArguments objet passé à la ExecuteSelect méthode.A data-bound control can request paging by adding the Page field to the DataSourceSelectArguments object passed to the ExecuteSelect method. Si un contrôle lié aux données demande une pagination, mais que la CanPage propriété retourne false
, la vue de source de données lève une exception.If a data-bound control requests paging, but the CanPage property returns false
, the data source view throws an exception.