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
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
PagePropertiesChangingEventArgs Class

Provides data for the ListView..::.PagePropertiesChanging event.

System..::.Object
  System..::.EventArgs
    System.Web.UI.WebControls..::.PagePropertiesChangingEventArgs

Namespace:  System.Web.UI.WebControls
Assembly:  System.Web.Extensions (in System.Web.Extensions.dll)
Visual Basic
Public Class PagePropertiesChangingEventArgs _
    Inherits EventArgs
C#
public class PagePropertiesChangingEventArgs : EventArgs
Visual C++
public ref class PagePropertiesChangingEventArgs : public EventArgs
F#
type PagePropertiesChangingEventArgs =  
    class
        inherit EventArgs
    end

The PagePropertiesChangingEventArgs type exposes the following members.

  NameDescription
Public methodPagePropertiesChangingEventArgsInitializes a new instance of the PagePropertiesChangingEventArgs class.
Top
  NameDescription
Public propertyMaximumRowsGets the maximum number of items to display on each page of data.
Public propertyStartRowIndexGets the index of the first item of the page.
Top
  NameDescription
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 methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
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

The ListView control raises the ListView..::.PagePropertiesChanging event whenever the ListView..::.SetPageProperties method is called. This occurs when a button in a DataPager control that is associated with the ListView control is clicked, and a new ListView..::.StartRowIndex or ListView..::.MaximumRows value is specified by the DataPager control. This enables you to provide a custom routine whenever this event occurs, such as clearing the SelectedIndex or EditIndex properties of the ListView control.

A PagePropertiesChangingEventArgs object is passed to the event handler. This object enables you to determine the index of the first item in the page that was selected by the user. You can also determine the maximum number of items to display on each page.

For more information about how to handle events, see Consuming Events.

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

.NET Framework

Supported in: 4, 3.5

Windows 7, Windows Vista SP1 or later, Windows XP SP3, 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
PagePropertiesChangingEventArgs, classe

Fournit des données pour l'événement ListView..::.PagePropertiesChanging.

System..::.Object
  System..::.EventArgs
    System.Web.UI.WebControls..::.PagePropertiesChangingEventArgs

Espace de noms :  System.Web.UI.WebControls
Assembly :  System.Web.Extensions (dans System.Web.Extensions.dll)
Visual Basic
Public Class PagePropertiesChangingEventArgs _
    Inherits EventArgs
C#
public class PagePropertiesChangingEventArgs : EventArgs
VisualC++
public ref class PagePropertiesChangingEventArgs : public EventArgs
F#
type PagePropertiesChangingEventArgs =  
    class
        inherit EventArgs
    end

Le type PagePropertiesChangingEventArgs expose les membres suivants.

  NomDescription
Méthode publiquePagePropertiesChangingEventArgsInitialise une nouvelle instance de la classe PagePropertiesChangingEventArgs.
Début
  NomDescription
Propriété publiqueMaximumRowsObtient le nombre maximum d'éléments à afficher sur chaque page de données.
Propriété publiqueStartRowIndexObtient l'index du premier élément de la page.
Début
  NomDescription
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 publiqueGetHashCodeSert de fonction de hachage pour un type particulier. (Hérité de Object.)
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

Le contrôle ListView déclenche l'événement ListView..::.PagePropertiesChanging chaque fois que la méthode ListView..::.SetPageProperties est appelée. Cela se produit lorsque l'on clique sur un bouton dans un contrôle DataPager associé au contrôle ListView, et qu'une valeur nouvelle ListView..::.StartRowIndex ou ListView..::.MaximumRows est spécifiée par le contrôle DataPager. Cela vous permet de fournir une routine personnalisée chaque fois que cet événement se produit, tel qu'effacer les propriétés SelectedIndex ou EditIndex du contrôle ListView.

Un objet PagePropertiesChangingEventArgs est passé au gestionnaire d'événements. Cet objet vous permet de déterminer l'index du premier élément dans la page qui avait été sélectionné par l'utilisateur. Vous pouvez également déterminer le nombre maximal d'éléments à afficher dans chaque page.

Pour plus d'informations sur la gestion d'événements, consultez Consommation d'événements.

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

.NET Framework

Pris en charge dans : 4, 3.5

Windows 7, Windows Vista SP1 ou ultérieur, Windows XP SP3, 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