DataGridViewColumnCollection.GetNextColumn Metoda

Definice

Získá první sloupec za daný sloupec v zobrazeném pořadí, který splňuje dané požadavky filtru.

public:
 System::Windows::Forms::DataGridViewColumn ^ GetNextColumn(System::Windows::Forms::DataGridViewColumn ^ dataGridViewColumnStart, System::Windows::Forms::DataGridViewElementStates includeFilter, System::Windows::Forms::DataGridViewElementStates excludeFilter);
public System.Windows.Forms.DataGridViewColumn GetNextColumn (System.Windows.Forms.DataGridViewColumn dataGridViewColumnStart, System.Windows.Forms.DataGridViewElementStates includeFilter, System.Windows.Forms.DataGridViewElementStates excludeFilter);
member this.GetNextColumn : System.Windows.Forms.DataGridViewColumn * System.Windows.Forms.DataGridViewElementStates * System.Windows.Forms.DataGridViewElementStates -> System.Windows.Forms.DataGridViewColumn
Public Function GetNextColumn (dataGridViewColumnStart As DataGridViewColumn, includeFilter As DataGridViewElementStates, excludeFilter As DataGridViewElementStates) As DataGridViewColumn

Parametry

dataGridViewColumnStart
DataGridViewColumn

Sloupec, ze kterého chcete začít hledat další sloupec.

includeFilter
DataGridViewElementStates

Bitové kombinace DataGridViewElementStates hodnot, které představují filtr, který se má použít pro zahrnutí.

excludeFilter
DataGridViewElementStates

Bitové kombinace DataGridViewElementStates hodnot, které představují filtr, který se má použít pro vyloučení.

Návraty

DataGridViewColumn

Další sloupec, který splňuje dané požadavky filtru, nebo null pokud se nenajde žádný sloupec.

Výjimky

dataGridViewColumnStart je null.

Alespoň jedna z hodnot filtru není platná bitové kombinace DataGridViewElementStates hodnot.

Poznámky

Další sloupec v pořadí zobrazení je sloupec s nejnižší DisplayIndex hodnotou vyšší než DisplayIndex hodnota zadaného sloupce bez ohledu na to, jestli je sloupec na obrazovce skutečně viditelný.

Tato metoda umožňuje určit další sloupec za aktuálním sloupcem, který odpovídá zadaným kritériím, aniž byste museli porovnávat hodnoty indexu přímo.

Platí pro

Viz také