DataGridViewRowCollection.IList.RemoveAt(Int32) 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
컬렉션에서 지정된 위치의 DataGridViewRow 를 제거합니다.
virtual void System.Collections.IList.RemoveAt(int index) = System::Collections::IList::RemoveAt;
void IList.RemoveAt (int index);
abstract member System.Collections.IList.RemoveAt : int -> unit
override this.System.Collections.IList.RemoveAt : int -> unit
Sub RemoveAt (index As Integer) Implements IList.RemoveAt
매개 변수
- index
- Int32
제거할 DataGridViewRow의 인덱스(0부터 시작)입니다.
구현
예외
index
가 0보다 작거나 컬렉션의 항목 수에서 1을 뺀 수보다 큽니다.
연결된 DataGridView 컨트롤이 일시적으로 새 행이 추가되지 않도록 하는 다음 작업 중 하나를 수행합니다.
컨트롤의 셀을 모두 선택합니다.
선택을 취소합니다.
또는 이 메서드는 다음 DataGridView 이벤트 중 하나의 처리기에서 호출됩니다.
또는
index
가 컬렉션의 행 수와 같고 AllowUserToAddRows 의 DataGridView 속성이 true
로 설정되었습니다.
또는
연결된 DataGridView 컨트롤이 둘 중 하나만 IBindingList 인 AllowRemove 및 SupportsChangeNotification 속성 값을 사용한 true
구현에 바인딩되어 있습니다.
설명
이 멤버는 명시적 인터페이스 멤버 구현이며, DataGridViewRowCollection 인스턴스가 IList 인터페이스로 캐스팅된 경우에만 사용할 수 있습니다.