DataGridViewRowCollection.GetNextRow Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the next row in the collection that meets the specified criteria.
Overloads
GetNextRow(Int32, DataGridViewElementStates) |
Returns the index of the next DataGridViewRow that meets the specified criteria. |
GetNextRow(Int32, DataGridViewElementStates, DataGridViewElementStates) |
Returns the index of the next DataGridViewRow that meets the specified inclusion and exclusion criteria. |
GetNextRow(Int32, DataGridViewElementStates)
Returns the index of the next DataGridViewRow that meets the specified criteria.
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
Parameters
- indexStart
- Int32
The index of the row where the method should begin to look for the next DataGridViewRow.
- includeFilter
- DataGridViewElementStates
A bitwise combination of DataGridViewElementStates values.
Returns
The index of the first DataGridViewRow after indexStart
that has the attributes specified by includeFilter
, or -1 if no row is found.
Exceptions
indexStart
is less than -1.
includeFilter
is not a valid bitwise combination of DataGridViewElementStates values.
Remarks
The GetNextRow(Int32, DataGridViewElementStates) method begins looking for the row that matches the criteria starting with the row positioned after indexStart
.
See also
Applies to
GetNextRow(Int32, DataGridViewElementStates, DataGridViewElementStates)
Returns the index of the next DataGridViewRow that meets the specified inclusion and exclusion criteria.
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
Parameters
- indexStart
- Int32
The index of the row where the method should begin to look for the next DataGridViewRow.
- includeFilter
- DataGridViewElementStates
A bitwise combination of DataGridViewElementStates values.
- excludeFilter
- DataGridViewElementStates
A bitwise combination of DataGridViewElementStates values.
Returns
The index of the next DataGridViewRow that has the attributes specified by includeFilter
, and does not have the attributes specified by excludeFilter
; -1 if no row is found.
Exceptions
indexStart
is less than -1.
One or both of the specified filter values is not a valid bitwise combination of DataGridViewElementStates values.
Remarks
The GetNextRow(Int32, DataGridViewElementStates, DataGridViewElementStates) method begins looking for the row that matches the criteria starting with the row positioned after indexStart
.
See also
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기