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

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

속성 값

지정한 인덱스에 있는 DataGridViewRow입니다. 이 인덱서를 사용하여 DataGridViewRow 에 액세스하면 행이 공유되지 않게 됩니다. 행이 공유되도록 하려면 SharedRow(Int32) 메서드를 사용합니다. 자세한 내용은 Windows Forms DataGridView 컨트롤의 크기를 조정하는 최선의 방법을 참조하세요.

예외

index 가 0보다 작습니다.

또는

indexCount보다 크거나 같은 경우

적용 대상

추가 정보