DataGridView.EndEdit 메서드

정의

현재 셀에 대한 편집 작업을 커밋한 다음 끝냅니다.

오버로드

EndEdit()

기본 오류 컨텍스트를 사용하여 현재 셀에 대한 편집 작업을 커밋한 다음 끝냅니다.

EndEdit(DataGridViewDataErrorContexts)

지정된 오류 컨텍스트를 사용하여 현재 셀에 대한 편집 작업을 커밋한 다음 끝냅니다.

EndEdit()

기본 오류 컨텍스트를 사용하여 현재 셀에 대한 편집 작업을 커밋한 다음 끝냅니다.

public:
 bool EndEdit();
public bool EndEdit ();
member this.EndEdit : unit -> bool
Public Function EndEdit () As Boolean

반환

편집 작업이 커밋되어 종료되면 true이고, 그렇지 않으면 false입니다.

예외

셀 값을 커밋할 수 없으며 DataError 이벤트에 대한 처리기가 없거나 처리기의 ThrowException 속성이 true로 설정되어 있습니다.

설명

이 메서드는 오버로드를 EndEdit 호출하여 및 Commit 값의 Parsing 비트 조합을 전달합니다.

이 메서드는 CellEndEdit 이벤트입니다.

이 메서드는 오류가 이벤트로 처리되지 않는 경우 예외가 DataError 발생할 수 있습니다.

추가 정보

적용 대상

EndEdit(DataGridViewDataErrorContexts)

지정된 오류 컨텍스트를 사용하여 현재 셀에 대한 편집 작업을 커밋한 다음 끝냅니다.

public:
 bool EndEdit(System::Windows::Forms::DataGridViewDataErrorContexts context);
public bool EndEdit (System.Windows.Forms.DataGridViewDataErrorContexts context);
member this.EndEdit : System.Windows.Forms.DataGridViewDataErrorContexts -> bool
Public Function EndEdit (context As DataGridViewDataErrorContexts) As Boolean

매개 변수

context
DataGridViewDataErrorContexts

오류 발생 가능한 컨텍스트를 지정하는 DataGridViewDataErrorContexts 값의 비트 조합입니다.

반환

편집 작업이 커밋되어 종료되면 true이고, 그렇지 않으면 false입니다.

예외

셀 값을 커밋할 수 없으며 DataError 이벤트에 대한 처리기가 없거나 처리기의 ThrowException 속성이 true로 설정되어 있습니다.

설명

이 메서드는 CellEndEdit 이벤트입니다.

이 메서드는 오류가 이벤트로 처리되지 않는 경우 예외가 DataError 발생할 수 있습니다.

추가 정보

적용 대상