DataGridViewRowCollection.GetPreviousRow Metoda

Definice

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

Přetížení

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)

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

Int32

Index předchozího DataGridViewRow objektu, který obsahuje atributy zadané includeFilterhodnotou ; -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)

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

Int32

Index předchozího DataGridViewRow atributu, který obsahuje atributy určené includeFilter, a nemá atributy určené excludeFilter; -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 bitovou kombinací DataGridViewElementStates 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