DataGridViewCell.GetValue(Int32) 메서드

정의

셀의 값을 가져옵니다.

protected:
 virtual System::Object ^ GetValue(int rowIndex);
protected virtual object GetValue (int rowIndex);
abstract member GetValue : int -> obj
override this.GetValue : int -> obj
Protected Overridable Function GetValue (rowIndex As Integer) As Object

매개 변수

rowIndex
Int32

셀의 부모 행의 인덱스입니다.

반환

Object

DataGridViewCell에 포함된 값입니다.

예외

셀의 DataGridView 속성 값이 null이 아니고 rowIndex가 0보다 작거나 부모 DataGridView의 행 수보다 크거나 같습니다.

셀의 DataGridView 속성 값이 null이 아니고 ColumnIndex 속성 값이 0보다 작아 셀이 행 머리글 셀임을 나타내는 경우

설명

GetValue 검색하는 데 사용한 행 인덱스 메서드를 전달합니다 DataGridViewCell. 매개 변수에 RowIndex 속성을 rowIndex 사용하지 마세요. 행이 공유 RowIndex 되는 경우 -1이며 유효한 값 rowIndex이 아닙니다.

적용 대상

추가 정보