Suggérer une traduction
 
Suggestions d'autres utilisateurs :

progress indicator
Aucune autre suggestion.
Cliquez pour évaluer et commenter
MSDN
MSDN Library
Développement .NET
.NET Framework 4
Espaces de noms System.Web
System.Web.UI.WebControls
PagedDataSource, classe
Réduire tout/Développer tout Réduire tout
Affichage du contenu :  côte à côteAffichage du contenu : côte à côte
.NET Framework Class Library
PagedDataSource Class

Encapsulates the paging-related properties of a data-bound control (such as DataGrid, GridView, DetailsView, and FormView) that allow it to perform paging. This class cannot be inherited.

System..::.Object
  System.Web.UI.WebControls..::.PagedDataSource

Namespace:  System.Web.UI.WebControls
Assembly:  System.Web (in System.Web.dll)
Visual Basic
Public NotInheritable Class PagedDataSource _
    Implements ICollection, IEnumerable, ITypedList
C#
public sealed class PagedDataSource : ICollection, 
    IEnumerable, ITypedList
Visual C++
public ref class PagedDataSource sealed : ICollection, 
    IEnumerable, ITypedList
F#
[<Sealed>]
type PagedDataSource =  
    class
        interface ICollection
        interface IEnumerable
        interface ITypedList
    end

The PagedDataSource type exposes the following members.

  NameDescription
Public methodPagedDataSourceInitializes a new instance of the PagedDataSource class.
Top
  NameDescription
Public propertyAllowCustomPagingGets or sets a value indicating whether custom paging is enabled in a data-bound control.
Public propertyAllowPagingGets or sets a value indicating whether paging is enabled in a data-bound control.
Public propertyAllowServerPagingGets or sets a value indicating whether server-side paging is enabled.
Public propertyCountGets the number of items to be used from the data source.
Public propertyCurrentPageIndexGets or sets the index of the current page.
Public propertyDataSourceGets or sets the data source.
Public propertyDataSourceCountGets the number of items in the data source.
Public propertyFirstIndexInPageGets the index of the first record displayed on the page.
Public propertyIsCustomPagingEnabledGets a value indicating whether custom paging is enabled.
Public propertyIsFirstPageGets a value indicating whether the current page is the first page.
Public propertyIsLastPageGets a value indicating whether the current page is the last page.
Public propertyIsPagingEnabledGets a value indicating whether paging is enabled.
Public propertyIsReadOnlyGets a value indicating whether the data source is read-only.
Public propertyIsServerPagingEnabledGets a value indicating whether server-side paging support is enabled.
Public propertyIsSynchronizedGets a value indicating whether access to the data source is synchronized (thread-safe).
Public propertyPageCountGets the total number of pages necessary to display all items in the data source.
Public propertyPageSizeGets or sets the number of items to display on a single page.
Public propertySyncRootGets the object that can be used to synchronize access to the collection.
Public propertyVirtualCountGets or sets the virtual number of items in the data source when custom paging is used.
Top
  NameDescription
Public methodCopyToCopies all the items from the data source to the specified System..::.Array, starting at the specified index in the System..::.Array.
Public methodEquals(Object)Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetEnumeratorReturns a System.Collections..::.IEnumerator implemented object that contains all items in the data source.
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetItemPropertiesReturns the System.ComponentModel..::.PropertyDescriptorCollection that represents the properties on each item used to bind data.
Public methodGetListNameReturns the name of the list. This method does not apply to this class.
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top
  NameDescription
Public Extension MethodAsParallelEnables parallelization of a query. (Defined by ParallelEnumerable.)
Public Extension MethodAsQueryableConverts an IEnumerable to an IQueryable. (Defined by Queryable.)
Public Extension MethodCast<(Of <(TResult>)>)Converts the elements of an IEnumerable to the specified type. (Defined by Enumerable.)
Public Extension MethodOfType<(Of <(TResult>)>)Filters the elements of an IEnumerable based on a specified type. (Defined by Enumerable.)
Top

The PagedDataSource class encapsulates the properties that allow data-source controls, such as the DataGrid, GridView, DetailsView, and FormView, to perform paging. This class is used by control developers when providing paging support to a custom data-bound control.

This class uses the best available method to enumerate over the data belonging to the current page. If the underlying data source supports indexed access (such as System..::.Array and System.Collections..::.IList), this class uses it. Otherwise, it uses the enumerator created by the GetEnumerator method.

For a list of initial property values for an instance of PagedDataSource, see the PagedDataSource constructor.

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0, 1.1, 1.0

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role not supported), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Bibliothèque de classes .NET Framework
PagedDataSource, classe

Encapsule les propriétés relatives à la pagination d'un contrôle lié aux données (par exemple DataGrid, GridView, DetailsView et FormView) qui lui permettent d'exécuter la pagination. Cette classe ne peut pas être héritée.

System..::.Object
  System.Web.UI.WebControls..::.PagedDataSource

Espace de noms :  System.Web.UI.WebControls
Assembly :  System.Web (dans System.Web.dll)
Visual Basic
Public NotInheritable Class PagedDataSource _
    Implements ICollection, IEnumerable, ITypedList
C#
public sealed class PagedDataSource : ICollection, 
    IEnumerable, ITypedList
VisualC++
public ref class PagedDataSource sealed : ICollection, 
    IEnumerable, ITypedList
F#
[<Sealed>]
type PagedDataSource =  
    class
        interface ICollection
        interface IEnumerable
        interface ITypedList
    end

Le type PagedDataSource expose les membres suivants.

  NomDescription
Méthode publiquePagedDataSourceInitialise une nouvelle instance de la classe PagedDataSource.
Début
  NomDescription
Propriété publiqueAllowCustomPagingObtient ou définit une valeur indiquant si la pagination personnalisée est activée dans un contrôle lié aux données.
Propriété publiqueAllowPagingObtient ou définit une valeur indiquant si la pagination est activée dans un contrôle lié aux données.
Propriété publiqueAllowServerPagingObtient ou définit une valeur indiquant si la pagination côté serveur est activée.
Propriété publiqueCountObtient ou définit le nombre d'éléments à utiliser à partir de la source de données ;
Propriété publiqueCurrentPageIndexObtient ou définit l'index de la page en cours.
Propriété publiqueDataSourceObtient ou définit la source de données.
Propriété publiqueDataSourceCountObtient le nombre d'éléments dans la source de données.
Propriété publiqueFirstIndexInPageObtient l'index du premier enregistrement affiché dans la page.
Propriété publiqueIsCustomPagingEnabledObtient une valeur indiquant si la pagination personnalisée est activée.
Propriété publiqueIsFirstPageObtient une valeur indiquant si la page en cours est la première.
Propriété publiqueIsLastPageObtient une valeur indiquant si la page en cours est la dernière.
Propriété publiqueIsPagingEnabledObtient une valeur indiquant si la pagination est activée.
Propriété publiqueIsReadOnlyObtient une valeur indiquant si la source de données est en lecture seule.
Propriété publiqueIsServerPagingEnabledObtient une valeur indiquant si la prise en charge de la pagination côté serveur est activée.
Propriété publiqueIsSynchronizedObtient une valeur indiquant si l'accès à la source de données est synchronisé (thread-safe).
Propriété publiquePageCountObtient le nombre total de pages requises pour afficher tous les éléments de la source de données.
Propriété publiquePageSizeObtient ou définit le nombre d'éléments à afficher sur une même page.
Propriété publiqueSyncRootObtient l'objet qui peut être utilisé pour synchroniser l'accès à la collection.
Propriété publiqueVirtualCountObtient ou définit le nombre virtuel d'éléments dans la source de données lorsque la pagination personnalisée est utilisée.
Début
  NomDescription
Méthode publiqueCopyToCopie tous les éléments de la source de données dans le System..::.Array spécifié, en commençant à l'index spécifié dans System..::.Array.
Méthode publiqueEquals(Object)Détermine si l'Object spécifié est égal à l'Object en cours. (Hérité de Object.)
Méthode protégéeFinalizeAutorise un objet à tenter de libérer des ressources et d'exécuter d'autres opérations de netto***ge avant qu'il ne soit récupéré par l'opération garbage collection. (Hérité de Object.)
Méthode publiqueGetEnumeratorRetourne un objet implémentant System.Collections..::.IEnumerator qui contient tous les éléments de la source de données.
Méthode publiqueGetHashCodeSert de fonction de hachage pour un type particulier. (Hérité de Object.)
Méthode publiqueGetItemPropertiesRetourne le System.ComponentModel..::.PropertyDescriptorCollection qui représente les propriétés de chaque élément utilisé pour la liaison de données.
Méthode publiqueGetListNameRetourne le nom de la liste. Cette méthode ne s'applique pas à cette classe.
Méthode publiqueGetTypeObtient le Type de l'instance actuelle. (Hérité de Object.)
Méthode protégéeMemberwiseCloneCrée une copie superficielle de l'objet Object actif. (Hérité de Object.)
Méthode publiqueToStringRetourne une chaîne qui représente l'objet actuel. (Hérité de Object.)
Début
  NomDescription
Méthode d'extension publiqueAsParallelActive la parallélisation d'une requête. (Défini par ParallelEnumerable.)
Méthode d'extension publiqueAsQueryableConvertit un IEnumerable en IQueryable. (Défini par Queryable.)
Méthode d'extension publiqueCast<(Of <(TResult>)>)Convertit les éléments d'un IEnumerable vers le type spécifié. (Défini par Enumerable.)
Méthode d'extension publiqueOfType<(Of <(TResult>)>)Filtre les éléments d'un IEnumerable en fonction du type spécifié. (Défini par Enumerable.)
Début

La classe PagedDataSource encapsule les propriétés qui permettent aux contrôles de sources de données, par exemple DataGrid, GridView, DetailsView et FormView, d'exécuter la pagination. Cette classe est utilisée par les développeurs de contrôles lorsqu'ils assurent la prise en charge de la pagination pour un contrôle personnalisé lié aux données.

Cette classe choisit la méthode disponible qui convient le mieux à une énumération des données appartenant à la page en cours. Si la source de données sous-jacente prend en charge un accès indexé (par exemple System..::.Array et System.Collections..::.IList), cette classe l'utilise. Sinon, elle utilise l'énumérateur créé par la méthode GetEnumerator.

Pour obtenir la liste des valeurs de propriétés initiales d'une instance de PagedDataSource, consultez le constructeur PagedDataSource.

.NET Framework

Pris en charge dans : 4, 3.5, 3.0, 2.0, 1.1, 1.0

Windows 7, Windows Vista SP1 ou ultérieur, Windows XP SP3, Windows XP SP2 Édition x64, Windows Server 2008 (installation minimale non prise en charge), Windows Server 2008 R2 (installation minimale prise en charge avec SP1 ou version ultérieure), Windows Server 2003 SP2

Le .NET Framework ne prend pas en charge toutes les versions de chaque plateforme. Pour obtenir la liste des versions prises en charge, consultez Configuration requise du .NET Framework.
Tous les membres static (Shared en Visual Basic) publics de ce type sont thread-safe. Il n'est pas garanti que les membres d'instance soient thread-safe.
Contenu de la communauté   Qu'est-ce que le Contenu de la communauté ?
Ajouter du contenu RSS  Annotations
Processing
© 2012 Microsoft. Tous droits réservés. Conditions d'utilisation | Marques | Confidentialité
Page view tracker