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

public: event EventHandler^ Scroll { void add (EventHandler^ value); void remove (EventHandler^ value); }
/** @event */ public void add_Scroll (EventHandler value) /** @event */ public void remove_Scroll (EventHandler value)

' 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

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.Scroll イベントを検索する場合は、下記のリンクをクリックしてください。

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