DataGrid.ShowParentDetailsButtonClick Event
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Occurs when the ShowParentDetails
button is clicked.
public:
event EventHandler ^ ShowParentDetailsButtonClick;
public event EventHandler ShowParentDetailsButtonClick;
member this.ShowParentDetailsButtonClick : EventHandler
Public Custom Event ShowParentDetailsButtonClick As EventHandler
Event Type
Examples
The following code example demonstrates the use of this member.
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
Applies to
GitHub पर हमारे साथ सहयोग करें
इस सामग्री का स्रोत GitHub पर पाया जा सकता है, जहाँ आप समस्याएँ बना और समीक्षा भी कर सकते हैं और अनुरोध खींच सकते हैं. अधिक जानकारी के लिए, हमारे योगदानकर्ता गाइड देखें.