DataGrid.Navigate イベント
アセンブリ: System.Windows.Forms (system.windows.forms.dll 内)

public: event NavigateEventHandler^ Navigate { void add (NavigateEventHandler^ value); void remove (NavigateEventHandler^ value); }


' 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

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からDataGrid.Navigate イベントを検索する場合は、下記のリンクをクリックしてください。

- DataGrid.Navigate イベントのページへのリンク