DataGridViewRowCollection.GetPreviousRow Metoda

Definice

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

Přetížení

Name Description
GetPreviousRow(Int32, DataGridViewElementStates)

Vrátí index předchozího DataGridViewRow , který splňuje zadaná kritéria.

GetPreviousRow(Int32, DataGridViewElementStates, DataGridViewElementStates)

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

GetPreviousRow(Int32, DataGridViewElementStates)

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

Vrátí index předchozího DataGridViewRow , který splňuje zadaná kritéria.

public:
 int GetPreviousRow(int indexStart, System::Windows::Forms::DataGridViewElementStates includeFilter);
public int GetPreviousRow(int indexStart, System.Windows.Forms.DataGridViewElementStates includeFilter);
member this.GetPreviousRow : int * System.Windows.Forms.DataGridViewElementStates -> int
Public Function GetPreviousRow (indexStart As Integer, includeFilter As DataGridViewElementStates) As Integer

Parametry

indexStart
Int32

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

includeFilter
DataGridViewElementStates

Bitové kombinace DataGridViewElementStates hodnot.

Návraty

Index předchozího DataGridViewRow atributu, který obsahuje atributy zadané pomocí includeFilter; -1, pokud nebyl nalezen žádný řádek.

Výjimky

indexStart je větší než počet řádků v kolekci.

includeFilter není platná bitové kombinace DataGridViewElementStates hodnot.

Poznámky

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

Viz také

Platí pro

GetPreviousRow(Int32, DataGridViewElementStates, DataGridViewElementStates)

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

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

public:
 int GetPreviousRow(int indexStart, System::Windows::Forms::DataGridViewElementStates includeFilter, System::Windows::Forms::DataGridViewElementStates excludeFilter);
public int GetPreviousRow(int indexStart, System.Windows.Forms.DataGridViewElementStates includeFilter, System.Windows.Forms.DataGridViewElementStates excludeFilter);
member this.GetPreviousRow : int * System.Windows.Forms.DataGridViewElementStates * System.Windows.Forms.DataGridViewElementStates -> int
Public Function GetPreviousRow (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 předchozí DataGridViewRow.

includeFilter
DataGridViewElementStates

Bitové kombinace DataGridViewElementStates hodnot.

excludeFilter
DataGridViewElementStates

Bitové kombinace DataGridViewElementStates hodnot.

Návraty

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

Výjimky

indexStart je větší než počet řádků v kolekci.

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

Poznámky

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

Viz také

Platí pro