DataGrid.ShowParentDetailsButtonClick 事件
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
在单击 ShowParentDetails
按钮时发生。
public:
event EventHandler ^ ShowParentDetailsButtonClick;
public event EventHandler ShowParentDetailsButtonClick;
member this.ShowParentDetailsButtonClick : EventHandler
Public Custom Event ShowParentDetailsButtonClick As 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