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

DataGrid.Navigate イベント

ユーザー新しテーブル移動する発生します

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

Public Event Navigate As
 NavigateEventHandler
Dim instance As DataGrid
Dim handler As NavigateEventHandler

AddHandler instance.Navigate, handler
public event NavigateEventHandler Navigate
public:
event NavigateEventHandler^ Navigate {
    void add (NavigateEventHandler^ value);
    void remove (NavigateEventHandler^ value);
}
/** @event */
public void add_Navigate (NavigateEventHandler
 value)

/** @event */
public void remove_Navigate (NavigateEventHandler
 value)
JScript では、イベント使用できますが、新規に宣言することはできません。
解説解説
使用例使用例
' Create an instance of the 'Navigate' NavigateEventHandler.
Private Sub CallNavigate()
   AddHandler myDataGrid.Navigate, AddressOf
 Grid_Navigate
End Sub 'CallNavigate


' Raise the event when navigating to another table.
 Private Sub Grid_Navigate(ByVal
 sender As Object, ByVal
 e As NavigateEventArgs)
     ' String variable used to show message.
     Dim myString As String
 = "Navigate event raised, moved to another table"
     ' Show the message when navigating to another table.
     MessageBox.Show(myString, "Table navigation information")
 End Sub 'Grid_Navigate
// Instantiate the 'Navigate' NavigateEventHandler.
private void CallNavigate()
{
   myDataGrid.Navigate += new NavigateEventHandler(Grid_Navigate);
}

// Raise the event when navigating to another table.
private void Grid_Navigate(object sender, NavigateEventArgs
 e)
{
   // String variable used to show message.
   string myString = "Navigate event raised, moved to another
 table";
   // Show the message when navigating to another table.
   MessageBox.Show(myString, "Table navigation information");
}
   // Instantiate the 'Navigate' NavigateEventHandler.
private:
   void CallNavigate()
   {
      myDataGrid->Navigate += gcnew NavigateEventHandler( this,
 &MyDataGrid::Grid_Navigate );
   }

   // Raise the event when navigating to another table.
private:
   void Grid_Navigate( Object^ /*sender*/, NavigateEventArgs^
 /*e*/ )
   {
      // String variable used to show message.
      String^ myString = "Navigate event raised, moved to another table";
      
      // Show the message when navigating to another table.
      MessageBox::Show( myString, "Table navigation information" );
   }
// Instantiate the 'Navigate' NavigateEventHandler.
private void CallNavigate()
{
    myDataGrid.add_Navigate(new NavigateEventHandler(GridNavigate));
} //CallNavigate

// Raise the event when navigating to another table.
protected void GridNavigate(Object sender,
 NavigateEventArgs e)
{
    // String variable used to show message.
    String myString = "Navigate event raised, moved to another table";

    // Show the message when navigating to another table.
    MessageBox.Show(myString, "Table navigation information");
} //GridNavigate
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照


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

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

辞書ショートカット

すべての辞書の索引

「DataGrid.Navigate イベント」の関連用語

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

   

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



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

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

©2024 GRAS Group, Inc.RSS