다음을 통해 공유


DataGrid.ShowParentDetailsButtonClick 이벤트

정의

ShowParentDetails 단추를 클릭하면 발생합니다.

public:
 event EventHandler ^ ShowParentDetailsButtonClick;
public event EventHandler ShowParentDetailsButtonClick;
member this.ShowParentDetailsButtonClick : EventHandler 
Public Custom Event ShowParentDetailsButtonClick As EventHandler 

이벤트 유형

EventHandler

예제

다음 코드 예제에서는이 멤버를 사용 하는 방법을 보여 줍니다.

private:
   void CallShowParentDetailsButtonClick()
   {
      myDataGrid->ShowParentDetailsButtonClick += gcnew EventHandler( this, &MyForm::DataGridShowParentDetailsButtonClick_Clicked );
   }

   // raise the event when ParentDetailsButton is clicked.
   void DataGridShowParentDetailsButtonClick_Clicked( Object^ /*sender*/, EventArgs^ /*e*/ )
   {
      String^ myMessage = "ShowParentDetailsButtonClick event raised";

      // Show the message when event is raised.
      MessageBox::Show( myMessage, "ShowParentDetailsButtonClick information" );
   }
private void CallShowParentDetailsButtonClick()
{
   myDataGrid.ShowParentDetailsButtonClick +=
      new EventHandler(DataGridShowParentDetailsButtonClick_Clicked);
}

// raise the event when ParentDetailsButton is clicked.
private void DataGridShowParentDetailsButtonClick_Clicked(object sender, EventArgs e)
{
   string myMessage = "ShowParentDetailsButtonClick event raised";

   // Show the message when event is raised.
   MessageBox.Show(myMessage, "ShowParentDetailsButtonClick information");
}
Private Sub CallShowParentDetailsButtonClick()
   AddHandler myDataGrid.ShowParentDetailsButtonClick, AddressOf _
                                           DataGridShowParentDetailsButtonClick_Clicked
End Sub


' raise the event when ParentDetailsButton is clicked.
 Private Sub DataGridShowParentDetailsButtonClick_Clicked(ByVal sender As Object, ByVal e As EventArgs)
     Dim myMessage As String = "ShowParentDetailsButtonClick event raised"

     ' Show the message when event is raised.
     MessageBox.Show(myMessage, "ShowParentDetailsButtonClick information")
 End Sub

적용 대상