DataGridView.OnRowUnshared(DataGridViewRowEventArgs) DataGridView.OnRowUnshared(DataGridViewRowEventArgs) DataGridView.OnRowUnshared(DataGridViewRowEventArgs) DataGridView.OnRowUnshared(DataGridViewRowEventArgs) Method

정의

RowUnshared 이벤트를 발생시킵니다.Raises the RowUnshared event.

protected:
 virtual void OnRowUnshared(System::Windows::Forms::DataGridViewRowEventArgs ^ e);
protected virtual void OnRowUnshared (System.Windows.Forms.DataGridViewRowEventArgs e);
abstract member OnRowUnshared : System.Windows.Forms.DataGridViewRowEventArgs -> unit
override this.OnRowUnshared : System.Windows.Forms.DataGridViewRowEventArgs -> unit
Protected Overridable Sub OnRowUnshared (e As DataGridViewRowEventArgs)

매개 변수

예외

eRow 속성이 나타내는 행이 이 DataGridView 컨트롤에 속하지 않은 경우The row indicated by the Row property of e does not belong to this DataGridView control.

설명

이벤트가 발생하면 대리자를 통해 이벤트 처리기가 호출됩니다.Raising an event invokes the event handler through a delegate. 자세한 내용은 이벤트 처리 및 발생합니다.For more information, see Handling and Raising Events.

또한 OnRowUnshared 메서드를 사용하면 파생 클래스가 대리자를 연결하지 않고도 이벤트를 처리할 수 있습니다.The OnRowUnshared method also allows derived classes to handle the event without attaching a delegate. 이는 파생 클래스에서 이벤트를 처리하는 기본 방법입니다.This is the preferred technique for handling the event in a derived class.

상속자 참고

파생 클래스에서 OnRowUnshared(DataGridViewRowEventArgs)를 재정의하는 경우 등록된 대리자가 이벤트를 받도록 기본 클래스의 OnRowUnshared(DataGridViewRowEventArgs) 메서드를 호출해야 합니다.When overriding OnRowUnshared(DataGridViewRowEventArgs) in a derived class, be sure to call the base class's OnRowUnshared(DataGridViewRowEventArgs) method so that registered delegates receive the event.

적용 대상

추가 정보