DataGridViewCellCollection.Add(DataGridViewCell) 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
컬렉션에 셀을 추가합니다.
public:
virtual int Add(System::Windows::Forms::DataGridViewCell ^ dataGridViewCell);
public virtual int Add(System.Windows.Forms.DataGridViewCell dataGridViewCell);
abstract member Add : System.Windows.Forms.DataGridViewCell -> int
override this.Add : System.Windows.Forms.DataGridViewCell -> int
Public Overridable Function Add (dataGridViewCell As DataGridViewCell) As Integer
매개 변수
- dataGridViewCell
- DataGridViewCell
DataGridViewCell 컬렉션에 추가할 A입니다.
반품
새 요소를 삽입할 위치입니다.
예외
이를 DataGridViewCellCollection 소유하는 행은 이미 컨트롤에 DataGridView 속합니다.
-또는-
dataGridViewCell 이미 에 속합니다 DataGridViewRow.
설명
컨트롤에 행을 추가하기 전에 이 메서드를 DataGridViewRow 사용하여 셀을 DataGridView 채웁다. 컨트롤에 행을 추가하면 포함된 셀 수가 항상 컨트롤의 열 수와 일치하므로 이 메서드는 더 이상 유용하지 않습니다.