DataGridViewRowCollection.Item[Int32] 속성

정의

지정된 인덱스에서 DataGridViewRow 가져옵니다.

public:
 property System::Windows::Forms::DataGridViewRow ^ default[int] { System::Windows::Forms::DataGridViewRow ^ get(int index); };
public System.Windows.Forms.DataGridViewRow this[int index] { get; }
member this.Item(int) : System.Windows.Forms.DataGridViewRow
Default Public ReadOnly Property Item(index As Integer) As DataGridViewRow

매개 변수

index
Int32

가져올 인덱스(0부터 시작) DataGridViewRow 입니다.

속성 값

DataGridViewRow 지정된 인덱스입니다. 이 인덱서로 DataGridViewRow 액세스하면 행이 공유되지 않습니다. 행을 공유된 상태로 유지하려면 메서드를 SharedRow(Int32) 사용합니다. 자세한 내용은 Windows Forms DataGridView 컨트롤 크기 조정에 대한 모범 사례를 참조하세요.

예외

index 가 0보다 작습니다.

-또는-

index가 .보다 크거나 같은 경우 Count

적용 대상

추가 정보