Assembly: System.Windows.Forms (in system.windows.forms.dll)
'Declaration Public Delegate Sub DataGridViewRowsAddedEventHandler ( _ sender As Object, _ e As DataGridViewRowsAddedEventArgs _ ) 'Usage Dim instance As New DataGridViewRowsAddedEventHandler(AddressOf HandlerMethod)
/** @delegate */ public delegate void DataGridViewRowsAddedEventHandler ( Object sender, DataGridViewRowsAddedEventArgs e )
The source of the event.
A DataGridViewRowsAddedEventArgs that contains the event data.
The RowsAdded event occurs when rows are added to a DataGridView control.
When you create a DataGridViewRowsAddedEventHandler delegate, you identify the method that will handle the event. To associate the event with your event handler, add an instance of the delegate to the event. The event handler is called whenever the event occurs, unless you remove the delegate. For more information about event-handler delegates, see Events and Delegates.
The following code example uses a DataGridViewRowsAddedEventHandler in virtual mode to store the fact that a row has been added. This example is part of a larger example available in the VirtualMode reference topic.
Private Sub dataGridView1_RowsAdded(ByVal sender As Object, _ ByVal e As DataGridViewRowsAddedEventArgs) _ Handles dataGridView1.RowsAdded If newRowNeeded Then newRowNeeded = False numberOfRows = numberOfRows + 1 End If End Sub
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
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.