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

DataGrid.Scroll イベント

ユーザーが System.Windows.Forms.DataGrid コントロールスクロールすると発生します

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

使用例使用例
' Create an instance of the 'Scroll' EventHandler.
Private Sub CallScroll()
   AddHandler myDataGrid.Scroll, AddressOf
 Grid_Scroll
End Sub 'CallScroll


' Raise the event when DataGrid is scrolled.
 Private Sub Grid_Scroll(ByVal
 sender As Object, ByVal
 e As EventArgs)
     ' String variable used to show message.
     Dim myString As String
 = "Scroll event raised, DataGrid is scrolled"
     ' Show the message when scrolling is done.
     MessageBox.Show(myString, "Scroll information")
 End Sub 'Grid_Scroll
// Create an instance of the 'Scroll' EventHandler.
private void CallScroll()
{
   myDataGrid.Scroll += new EventHandler(Grid_Scroll);
}

// Raise the event when DataGrid is scrolled.
private void Grid_Scroll(object sender, EventArgs
 e)
{
   // String variable used to show message.
   string myString = "Scroll event raised, DataGrid is scrolled";
   // Show the message when scrolling is done.
   MessageBox.Show(myString, "Scroll information");
}
   // Create an instance of the 'Scroll' EventHandler.
private:
   void CallScroll()
   {
      myDataGrid->Scroll += gcnew EventHandler( this, &MyDataGrid::Grid_Scroll
 );
   }

   // Raise the event when DataGrid is scrolled.
   void Grid_Scroll( Object^ /*sender*/, EventArgs^ /*e*/ )
   {
      // String variable used to show message.
      String^ myString = "Scroll event raised, DataGrid is scrolled";

      // Show the message when scrolling is done.
      MessageBox::Show( myString, "Scroll information" );
   }
// Create an instance of the 'Scroll' EventHandler.
private void CallScroll()
{
    myDataGrid.add_Scroll(new EventHandler(GridScroll));
} //CallScroll

// Raise the event when DataGrid is scrolled.
protected void GridScroll(Object sender, EventArgs
 e)
{
    // String variable used to show message.
    String myString = "Scroll event raised, DataGrid is scrolled";

    // Show the message when scrolling is done.
    MessageBox.Show(myString, "Scroll information");
} //GridScroll
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照



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

辞書ショートカット

すべての辞書の索引

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

   

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



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

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

©2024 GRAS Group, Inc.RSS