DataGridViewRowCollection.GetNextRow Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Obtient la ligne suivante de la collection qui répond aux critères spécifiés.
Surcharges
| Nom | Description |
|---|---|
| GetNextRow(Int32, DataGridViewElementStates) |
Retourne l’index de la suivante DataGridViewRow qui répond aux critères spécifiés. |
| GetNextRow(Int32, DataGridViewElementStates, DataGridViewElementStates) |
Retourne l’index de la suivante DataGridViewRow qui répond aux critères d’inclusion et d’exclusion spécifiés. |
GetNextRow(Int32, DataGridViewElementStates)
- Source:
- DataGridViewRowCollection.cs
- Source:
- DataGridViewRowCollection.cs
- Source:
- DataGridViewRowCollection.cs
- Source:
- DataGridViewRowCollection.cs
- Source:
- DataGridViewRowCollection.cs
Retourne l’index de la suivante DataGridViewRow qui répond aux critères spécifiés.
public:
int GetNextRow(int indexStart, System::Windows::Forms::DataGridViewElementStates includeFilter);
public int GetNextRow(int indexStart, System.Windows.Forms.DataGridViewElementStates includeFilter);
member this.GetNextRow : int * System.Windows.Forms.DataGridViewElementStates -> int
Public Function GetNextRow (indexStart As Integer, includeFilter As DataGridViewElementStates) As Integer
Paramètres
- indexStart
- Int32
Index de la ligne où la méthode doit commencer à rechercher la suivante DataGridViewRow.
- includeFilter
- DataGridViewElementStates
Combinaison de valeurs au niveau du DataGridViewElementStates bit.
Retours
Index du premier DataGridViewRow après indexStart qui a les attributs spécifiés par includeFilter, ou -1 si aucune ligne n’est trouvée.
Exceptions
indexStart est inférieur à -1.
includeFilter n’est pas une combinaison de valeurs au niveau du DataGridViewElementStates bit valide.
Remarques
La GetNextRow(Int32, DataGridViewElementStates) méthode commence à rechercher la ligne qui correspond aux critères commençant par la ligne positionnée après indexStart.
Voir aussi
S’applique à
GetNextRow(Int32, DataGridViewElementStates, DataGridViewElementStates)
- Source:
- DataGridViewRowCollection.cs
- Source:
- DataGridViewRowCollection.cs
- Source:
- DataGridViewRowCollection.cs
- Source:
- DataGridViewRowCollection.cs
- Source:
- DataGridViewRowCollection.cs
Retourne l’index de la suivante DataGridViewRow qui répond aux critères d’inclusion et d’exclusion spécifiés.
public:
int GetNextRow(int indexStart, System::Windows::Forms::DataGridViewElementStates includeFilter, System::Windows::Forms::DataGridViewElementStates excludeFilter);
public int GetNextRow(int indexStart, System.Windows.Forms.DataGridViewElementStates includeFilter, System.Windows.Forms.DataGridViewElementStates excludeFilter);
member this.GetNextRow : int * System.Windows.Forms.DataGridViewElementStates * System.Windows.Forms.DataGridViewElementStates -> int
Public Function GetNextRow (indexStart As Integer, includeFilter As DataGridViewElementStates, excludeFilter As DataGridViewElementStates) As Integer
Paramètres
- indexStart
- Int32
Index de la ligne où la méthode doit commencer à rechercher la suivante DataGridViewRow.
- includeFilter
- DataGridViewElementStates
Combinaison de valeurs au niveau du DataGridViewElementStates bit.
- excludeFilter
- DataGridViewElementStates
Combinaison de valeurs au niveau du DataGridViewElementStates bit.
Retours
Index de la suivante DataGridViewRow qui a les attributs spécifiés par includeFilter, et n’a pas les attributs spécifiés par excludeFilter; -1 si aucune ligne n’est trouvée.
Exceptions
indexStart est inférieur à -1.
Une ou les deux valeurs de filtre spécifiées ne sont pas une combinaison de valeurs au niveau du DataGridViewElementStates bit valide.
Remarques
La GetNextRow(Int32, DataGridViewElementStates, DataGridViewElementStates) méthode commence à rechercher la ligne qui correspond aux critères commençant par la ligne positionnée après indexStart.