DataGridViewRowCollection.GetNextRow Metoda

Definice

Získá další řádek v kolekci, který splňuje zadaná kritéria.

Přetížení

Name Description
GetNextRow(Int32, DataGridViewElementStates)

Vrátí index dalšího DataGridViewRow , který splňuje zadaná kritéria.

GetNextRow(Int32, DataGridViewElementStates, DataGridViewElementStates)

Vrátí index dalšího DataGridViewRow , který splňuje zadaná kritéria zahrnutí a vyloučení.

GetNextRow(Int32, DataGridViewElementStates)

Zdroj:
DataGridViewRowCollection.cs
Zdroj:
DataGridViewRowCollection.cs
Zdroj:
DataGridViewRowCollection.cs
Zdroj:
DataGridViewRowCollection.cs
Zdroj:
DataGridViewRowCollection.cs

Vrátí index dalšího DataGridViewRow , který splňuje zadaná kritéria.

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

Parametry

indexStart
Int32

Index řádku, ve kterém by metoda měla začít hledat další DataGridViewRow.

includeFilter
DataGridViewElementStates

Bitové kombinace DataGridViewElementStates hodnot.

Návraty

Index prvního DataGridViewRow po indexStart tom, co má atributy určené parametrem includeFilter, nebo -1, pokud nebyl nalezen žádný řádek.

Výjimky

indexStart je menší než -1.

includeFilter není platná bitové kombinace DataGridViewElementStates hodnot.

Poznámky

Metoda GetNextRow(Int32, DataGridViewElementStates) začne hledat řádek, který odpovídá kritériím počínaje řádkem umístěným za indexStart.

Viz také

Platí pro

GetNextRow(Int32, DataGridViewElementStates, DataGridViewElementStates)

Zdroj:
DataGridViewRowCollection.cs
Zdroj:
DataGridViewRowCollection.cs
Zdroj:
DataGridViewRowCollection.cs
Zdroj:
DataGridViewRowCollection.cs
Zdroj:
DataGridViewRowCollection.cs

Vrátí index dalšího DataGridViewRow , který splňuje zadaná kritéria zahrnutí a vyloučení.

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

Parametry

indexStart
Int32

Index řádku, ve kterém by metoda měla začít hledat další DataGridViewRow.

includeFilter
DataGridViewElementStates

Bitové kombinace DataGridViewElementStates hodnot.

excludeFilter
DataGridViewElementStates

Bitové kombinace DataGridViewElementStates hodnot.

Návraty

Index dalšího DataGridViewRow , který má atributy určené parametrem includeFilter, a neobsahuje atributy určené excludeFilterpomocí ; -1 pokud nebyl nalezen žádný řádek.

Výjimky

indexStart je menší než -1.

Jedna nebo obě zadané hodnoty filtru nejsou platnou DataGridViewElementStates bitové kombinace hodnot.

Poznámky

Metoda GetNextRow(Int32, DataGridViewElementStates, DataGridViewElementStates) začne hledat řádek, který odpovídá kritériím počínaje řádkem umístěným za indexStart.

Viz také

Platí pro