DataGrid.BackButtonClick 이벤트
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
자식 테이블의 Back 단추를 클릭하면 발생합니다.
public:
event EventHandler ^ BackButtonClick;
public event EventHandler BackButtonClick;
member this.BackButtonClick : EventHandler
Public Custom Event BackButtonClick As EventHandler
이벤트 유형
예제
다음 코드 예제에서는 이벤트에 대 한 이벤트 처리기를 추가 합니다 BackButtonClick .
// Create an instance of the 'BackButtonClick' EventHandler.
private:
void CallBackButtonClick()
{
myDataGrid->BackButtonClick += gcnew EventHandler( this, &MyDataGrid::Grid_BackClick );
}
// Raise the event when 'BackButton' on child table is clicked.
void Grid_BackClick( Object^ /*sender*/, EventArgs^ /*e*/ )
{
// String variable used to show message.
String^ myString = "BackButtonClick event raised, showing parent table";
// Show information about Back button.
MessageBox::Show( myString, "Back button information" );
}
// Create an instance of the 'BackButtonClick' EventHandler.
private void CallBackButtonClick()
{
myDataGrid.BackButtonClick += new EventHandler(Grid_BackClick);
}
// Raise the event when 'BackButton' on child table is clicked.
private void Grid_BackClick(object sender, EventArgs e)
{
// String variable used to show message.
string myString = "BackButtonClick event raised, showing parent table";
// Show information about Back button.
MessageBox.Show(myString, "Back button information");
}
' Create an instance of the 'BackButtonClick' EventHandler.
Private Sub CallBackButtonClick()
AddHandler myDataGrid.BackButtonClick, AddressOf Grid_BackClick
End Sub
' Raise the event when 'BackButton' on child table is clicked.
Private Sub Grid_BackClick(ByVal sender As Object, ByVal e As EventArgs)
' String variable used to show message.
Dim myString As String = "BackButtonClick event raised, showing parent table"
' Show information about Back button.
MessageBox.Show(myString, "Back button information")
End Sub
설명
Back 자식 테이블이 표시되면 단추가 표시됩니다. 단추를 클릭하면 그리드에 부모 테이블이 표시됩니다.