DataGrid.ParentRowsVisibleChanged イベントとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > DataGrid.ParentRowsVisibleChanged イベントの意味・解説 

DataGrid.ParentRowsVisibleChanged イベント

ParentRowsVisible プロパティの値が変更され場合発生します

名前空間: System.Windows.Forms
アセンブリ: System.Windows.Forms (system.windows.forms.dll 内)
構文構文

Public Event ParentRowsVisibleChanged As
 EventHandler
Dim instance As DataGrid
Dim handler As EventHandler

AddHandler instance.ParentRowsVisibleChanged, handler
public event EventHandler ParentRowsVisibleChanged
/** @event */
public void add_ParentRowsVisibleChanged (EventHandler
 value)

/** @event */
public void remove_ParentRowsVisibleChanged
 (EventHandler value)
JScript では、イベント使用できますが、新規に宣言することはできません。
解説解説
使用例使用例
Private Sub CallParentRowsVisibleChanged()
    AddHandler myDataGrid.ParentRowsVisibleChanged, AddressOf
 _
                                              DataGridParentRowsVisibleChanged_Clicked
End Sub 'CallParentRowsVisibleChanged


' 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 'ToggleVisible_Clicked

' 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 'DataGridParentRowsVisibleChanged_Clicked
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:
   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.add_ParentRowsVisibleChanged(new 
        EventHandler(DataGridParentRowsVisibleChanged_Clicked));
} //CallParentRowsVisibleChanged

// Set the 'ParentRowsVisible' property on click of a button.
protected void ToggleVisible_Clicked(Object
 sender, EventArgs e)
{
    if (myDataGrid.get_ParentRowsVisible() == true)
 {
        myDataGrid.set_ParentRowsVisible(false);
    }
    else {
        myDataGrid.set_ParentRowsVisible(true);
    }
} //ToggleVisible_Clicked

// raise the event when 'ParentRowsVisible' property is changed.
protected void DataGridParentRowsVisibleChanged_Clicked(Object
 sender,
    EventArgs e) {
    String myMessage = "ParentRowsVisibleChanged event raised, "
        + "Parent row is : ";
    boolean visible = myDataGrid.get_ParentRowsVisible();
    myMessage +=(visible) ? " " : " NOT " + "visible";
    MessageBox.Show(myMessage, "ParentRowsVisible information");
} //DataGridParentRowsVisibleChanged_Clicked
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照


このページでは「.NET Framework クラス ライブラリ リファレンス」からDataGrid.ParentRowsVisibleChanged イベントを検索した結果を表示しています。
Weblioに収録されているすべての辞書からDataGrid.ParentRowsVisibleChanged イベントを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からDataGrid.ParentRowsVisibleChanged イベント を検索

英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

DataGrid.ParentRowsVisibleChanged イベントのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



DataGrid.ParentRowsVisibleChanged イベントのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2025 Microsoft.All rights reserved.

©2025 GRAS Group, Inc.RSS