DataGrid.ParentRowsVisibleChanged 이벤트
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
ParentRowsVisible 속성 값이 변경되면 발생합니다.
public:
event EventHandler ^ ParentRowsVisibleChanged;
public event EventHandler ParentRowsVisibleChanged;
member this.ParentRowsVisibleChanged : EventHandler
Public Custom Event ParentRowsVisibleChanged As EventHandler
이벤트 유형
예제
다음 코드 예제에서는이 멤버를 사용 하는 방법을 보여 줍니다.
private:
void CallParentRowsVisibleChanged()
{
myDataGrid->ParentRowsVisibleChanged += gcnew EventHandler( this, &MyForm::DataGridParentRowsVisibleChanged_Clicked );
}
// Set the 'ParentRowsVisible' property on click of a button.
void ToggleVisible_Clicked( Object^ /*sender*/, EventArgs^ /*e*/ )
{
if ( myDataGrid->ParentRowsVisible == true )
myDataGrid->ParentRowsVisible = false;
else
myDataGrid->ParentRowsVisible = true;
}
// raise the event when 'ParentRowsVisible' property is changed.
void DataGridParentRowsVisibleChanged_Clicked( Object^ /*sender*/, EventArgs^ /*e*/ )
{
String^ myMessage = "ParentRowsVisibleChanged event raised, Parent row is : ";
bool visible = myDataGrid->ParentRowsVisible;
myMessage = String::Concat( myMessage, visible ? (String^)" " : " NOT ", "visible" );
MessageBox::Show( myMessage, "ParentRowsVisible information" );
}
private void CallParentRowsVisibleChanged()
{
myDataGrid.ParentRowsVisibleChanged +=
new EventHandler(DataGridParentRowsVisibleChanged_Clicked);
}
// Set the 'ParentRowsVisible' property on click of a button.
private void ToggleVisible_Clicked(object sender, EventArgs e)
{
if (myDataGrid.ParentRowsVisible == true)
myDataGrid.ParentRowsVisible = false;
else
myDataGrid.ParentRowsVisible = true;
}
// raise the event when 'ParentRowsVisible' property is changed.
private void DataGridParentRowsVisibleChanged_Clicked(object sender, EventArgs e)
{
string myMessage = "ParentRowsVisibleChanged event raised, Parent row is : ";
bool visible = myDataGrid.ParentRowsVisible;
myMessage += (visible ? " " : " NOT ") + "visible";
MessageBox.Show(myMessage, "ParentRowsVisible information");
}
Private Sub CallParentRowsVisibleChanged()
AddHandler myDataGrid.ParentRowsVisibleChanged, AddressOf _
DataGridParentRowsVisibleChanged_Clicked
End Sub
' Set the 'ParentRowsVisible' property on click of a button.
Private Sub ToggleVisible_Clicked(ByVal sender As Object, ByVal e As EventArgs)
If myDataGrid.ParentRowsVisible = True Then
myDataGrid.ParentRowsVisible = False
Else
myDataGrid.ParentRowsVisible = True
End If
End Sub
' raise the event when 'ParentRowsVisible' property is changed.
Private Sub DataGridParentRowsVisibleChanged_Clicked(ByVal sender As Object, ByVal e As EventArgs)
Dim myMessage As String = "ParentRowsVisibleChanged event raised, Parent row is : "
Dim visible As Boolean = myDataGrid.ParentRowsVisible
myMessage += IIF(visible, " ", "Not") + "Visible"
MessageBox.Show(myMessage, "ParentRowsVisible information")
End Sub