DataGridViewCellCollection.Item[] 속성

정의

제공된 위치에서 항목을 가져오거나 설정합니다. C#에서 이 속성은 클래스의 인덱서 DataGridViewCellCollection 입니다.

오버로드

Name Description
Item[Int32]

제공된 인덱스 위치에 있는 셀을 가져오거나 설정합니다. C#에서 이 속성은 클래스의 인덱서 DataGridViewCellCollection 입니다.

Item[String]

제공된 이름을 가진 열의 셀을 가져오거나 설정합니다. C#에서 이 속성은 클래스의 인덱서 DataGridViewCellCollection 입니다.

Item[Int32]

Source:
DataGridViewCellCollection.cs
Source:
DataGridViewCellCollection.cs
Source:
DataGridViewCellCollection.cs
Source:
DataGridViewCellCollection.cs
Source:
DataGridViewCellCollection.cs

제공된 인덱스 위치에 있는 셀을 가져오거나 설정합니다. C#에서 이 속성은 클래스의 인덱서 DataGridViewCellCollection 입니다.

public:
 property System::Windows::Forms::DataGridViewCell ^ default[int] { System::Windows::Forms::DataGridViewCell ^ get(int index); void set(int index, System::Windows::Forms::DataGridViewCell ^ value); };
public System.Windows.Forms.DataGridViewCell this[int index] { get; set; }
member this.Item(int) : System.Windows.Forms.DataGridViewCell with get, set
Default Public Property Item(index As Integer) As DataGridViewCell

매개 변수

index
Int32

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

속성 값

DataGridViewCell 지정된 인덱스로 저장된 인덱스입니다.

예외

이 속성을 설정할 때 지정한 값은 .입니다 null.

이 속성을 설정할 때 지정한 셀이 컨트롤에 DataGridView 이미 속해 있습니다.

-또는-

이 속성을 설정할 때 지정한 셀이 이미 에 DataGridViewRow속합니다.

index 가 0보다 작습니다.

-또는-

index 가 컬렉션의 셀 수보다 크거나 같은 경우

추가 정보

적용 대상

Item[String]

Source:
DataGridViewCellCollection.cs
Source:
DataGridViewCellCollection.cs
Source:
DataGridViewCellCollection.cs
Source:
DataGridViewCellCollection.cs
Source:
DataGridViewCellCollection.cs

제공된 이름을 가진 열의 셀을 가져오거나 설정합니다. C#에서 이 속성은 클래스의 인덱서 DataGridViewCellCollection 입니다.

public:
 property System::Windows::Forms::DataGridViewCell ^ default[System::String ^] { System::Windows::Forms::DataGridViewCell ^ get(System::String ^ columnName); void set(System::String ^ columnName, System::Windows::Forms::DataGridViewCell ^ value); };
public System.Windows.Forms.DataGridViewCell this[string columnName] { get; set; }
member this.Item(string) : System.Windows.Forms.DataGridViewCell with get, set
Default Public Property Item(columnName As String) As DataGridViewCell

매개 변수

columnName
String

셀을 얻거나 설정할 열의 이름입니다.

속성 값

DataGridViewCell 지정된 이름의 열에 저장된 항목입니다.

예외

columnName 컨트롤에 있는 열의 이름과 일치하지 않습니다.

이 속성을 설정할 때 지정한 값은 .입니다 null.

이 속성을 설정할 때 지정한 셀이 컨트롤에 DataGridView 이미 속해 있습니다.

-또는-

이 속성을 설정할 때 지정한 셀이 이미 에 DataGridViewRow속합니다.

추가 정보

적용 대상