DataGridViewRowCollection 클래스

정의

DataGridViewRow 개체의 컬렉션입니다.

public ref class DataGridViewRowCollection : System::Collections::IList
[System.ComponentModel.ListBindable(false)]
public class DataGridViewRowCollection : System.Collections.IList
[<System.ComponentModel.ListBindable(false)>]
type DataGridViewRowCollection = class
    interface IList
    interface ICollection
    interface IEnumerable
[<System.ComponentModel.ListBindable(false)>]
type DataGridViewRowCollection = class
    interface ICollection
    interface IEnumerable
    interface IList
Public Class DataGridViewRowCollection
Implements IList
상속
DataGridViewRowCollection
특성
구현

설명

에는 DataGridViewRowCollection 컨트롤의 DataGridViewRow 개체가 DataGridView 포함됩니다. 컨트롤 Rows 속성을 통해 이 클래스의 instance 검색할 수 있습니다. 컬렉션은 속성을 통해 컨트롤에 대한 참조를 DataGridView 유지 관리합니다.

성능을 향상시키기 위해 에는 DataGridViewRowCollection 공유 행과 공유되지 않은 행이 포함됩니다. 공유 행은 메모리를 공유하여 큰 레코드 집합의 비용을 줄입니다. 레코드 집합이 매우 큰 경우 행을 가능한 한 많이 공유하도록 주의해야 합니다.

자세한 내용은 Windows Forms DataGridView 컨트롤의 크기를 조정하는 최선의 방법을 참조하세요.

생성자

DataGridViewRowCollection(DataGridView)

DataGridViewRowCollection 클래스의 새 인스턴스를 초기화합니다.

속성

Count

컬렉션의 행 수를 가져옵니다.

DataGridView

컬렉션을 소유하는 DataGridView 를 가져옵니다.

Item[Int32]

지정된 인덱스의 DataGridViewRow를 가져옵니다.

List

DataGridViewRow 개체의 배열을 가져옵니다.

메서드

Add()

컬렉션에 새 행을 추가합니다.

Add(DataGridViewRow)

지정된 DataGridViewRow를 컬렉션에 추가합니다.

Add(Int32)

컬렉션에 지정된 수의 새 행을 추가합니다.

Add(Object[])

새 행을 컬렉션에 추가하고 셀을 지정된 개체로 채웁니다.

AddCopies(Int32, Int32)

지정된 인덱스의 행을 기반으로 하는 컬렉션에 지정된 수의 행을 추가합니다.

AddCopy(Int32)

지정된 인덱스의 행을 기반으로 하는 새 행을 추가합니다.

AddRange(DataGridViewRow[])

컬렉션에 지정된 DataGridViewRow 개체를 추가합니다.

Clear()

컬렉션을 지웁니다.

Contains(DataGridViewRow)

지정된 DataGridViewRow가 컬렉션에 있는지 여부를 확인합니다.

CopyTo(DataGridViewRow[], Int32)

컬렉션의 항목을 지정한 DataGridViewRow 배열의 지정한 인덱스부터 복사합니다.

Equals(Object)

지정된 개체가 현재 개체와 같은지 확인합니다.

(다음에서 상속됨 Object)
GetFirstRow(DataGridViewElementStates)

지정된 조건을 만족하는 첫 번째 DataGridViewRow 의 인덱스를 반환합니다.

GetFirstRow(DataGridViewElementStates, DataGridViewElementStates)

지정된 포함 및 제외 조건을 만족하는 첫 번째 DataGridViewRow 의 인덱스를 반환합니다.

GetHashCode()

기본 해시 함수로 작동합니다.

(다음에서 상속됨 Object)
GetLastRow(DataGridViewElementStates)

지정된 조건을 만족하는 마지막 DataGridViewRow 의 인덱스를 반환합니다.

GetNextRow(Int32, DataGridViewElementStates)

지정된 기준을 충족하는 다음 DataGridViewRow 의 인덱스를 반환합니다.

GetNextRow(Int32, DataGridViewElementStates, DataGridViewElementStates)

지정된 포함 및 제외 기준을 충족하는 다음 DataGridViewRow 의 인덱스를 반환합니다.

GetPreviousRow(Int32, DataGridViewElementStates)

지정된 조건을 만족하는 이전 DataGridViewRow 의 인덱스를 반환합니다.

GetPreviousRow(Int32, DataGridViewElementStates, DataGridViewElementStates)

지정된 포함 및 제외 기준을 충족하는 이전 DataGridViewRow 의 인덱스를 반환합니다.

GetRowCount(DataGridViewElementStates)

지정된 조건을 만족하는 컬렉션의 DataGridViewRow 개체 수를 반환합니다.

GetRowsHeight(DataGridViewElementStates)

지정된 조건을 만족하는 DataGridViewRow 개체의 누적 높이를 반환합니다.

GetRowState(Int32)

지정된 인덱스를 사용하여 행의 상태를 가져옵니다.

GetType()

현재 인스턴스의 Type을 가져옵니다.

(다음에서 상속됨 Object)
IndexOf(DataGridViewRow)

컬렉션에서 지정한 항목의 인덱스를 반환합니다.

Insert(Int32, DataGridViewRow)

지정된 DataGridViewRow 를 컬렉션에 삽입합니다.

Insert(Int32, Int32)

지정된 행 수를 컬렉션의 지정된 위치에 삽입합니다.

Insert(Int32, Object[])

컬렉션의 지정된 위치에 행을 삽입하고 지정된 개체로 셀을 채웁니다.

InsertCopies(Int32, Int32, Int32)

컬렉션에서 지정된 위치에 행을 삽입합니다.

InsertCopy(Int32, Int32)

지정된 위치의 행을 기반으로 하여 컬렉션의 지정된 위치에 행을 삽입합니다.

InsertRange(Int32, DataGridViewRow[])

지정된 위치에서 DataGridViewRow 개체를 컬렉션에 삽입합니다.

MemberwiseClone()

현재 Object의 단순 복사본을 만듭니다.

(다음에서 상속됨 Object)
OnCollectionChanged(CollectionChangeEventArgs)

CollectionChanged 이벤트를 발생시킵니다.

Remove(DataGridViewRow)

컬렉션에서 행을 제거합니다.

RemoveAt(Int32)

컬렉션에서 지정된 위치의 행을 제거합니다.

SharedRow(Int32)

지정된 인덱스의 DataGridViewRow 를 삭제합니다.

ToString()

현재 개체를 나타내는 문자열을 반환합니다.

(다음에서 상속됨 Object)

이벤트

CollectionChanged

컬렉션의 내용이 변경된 경우 발생합니다.

명시적 인터페이스 구현

ICollection.CopyTo(Array, Int32)

컬렉션의 요소를 Array의 지정된 인덱스에서 시작하는 위치에 복사합니다.

ICollection.Count

컬렉션에 포함된 요소 수를 가져옵니다.

ICollection.IsSynchronized

해당 컬렉션에 대한 액세스가 동기화되어 스레드로부터 안전하게 보호되는지를 나타내는 값을 가져옵니다.

ICollection.SyncRoot

컬렉션에 대한 액세스를 동기화하는 데 사용할 수 있는 개체를 가져옵니다.

IEnumerable.GetEnumerator()

컬렉션을 반복하는 열거자를 반환합니다.

IList.Add(Object)

DataGridViewRow를 컬렉션에 추가합니다.

IList.Clear()

컬렉션에서 모든 항목을 제거합니다.

IList.Contains(Object)

컬렉션에 지정된 항목이 포함되는지 여부를 결정합니다.

IList.IndexOf(Object)

컬렉션에서 지정한 항목의 인덱스를 반환합니다.

IList.Insert(Int32, Object)

DataGridViewRow을 컬렉션에서 지정한 인덱스에 삽입합니다.

IList.IsFixedSize

컬렉션의 크기가 고정되어 있는지를 나타내는 값을 가져옵니다.

IList.IsReadOnly

컬렉션이 읽기 전용인지를 나타내는 값을 가져옵니다.

IList.Item[Int32]

지정한 인덱스에 있는 요소를 가져오거나 설정합니다.

IList.Remove(Object)

지정된 DataGridViewRow를 컬렉션에서 제거합니다.

IList.RemoveAt(Int32)

컬렉션에서 지정된 위치의 DataGridViewRow 를 제거합니다.

확장 메서드

Cast<TResult>(IEnumerable)

IEnumerable의 요소를 지정된 형식으로 캐스팅합니다.

OfType<TResult>(IEnumerable)

지정된 형식에 따라 IEnumerable의 요소를 필터링합니다.

AsParallel(IEnumerable)

쿼리를 병렬화할 수 있도록 합니다.

AsQueryable(IEnumerable)

IEnumerableIQueryable로 변환합니다.

적용 대상

추가 정보