.NET Framework 4.5
Provides data for row-related DataGridView events.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Thetype exposes the following members.
|Equals(Object)||Determines whether the specified object is equal to the current object. (Inherited from Object.)|
|Finalize||Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)|
|GetHashCode||Serves as the default hash function. (Inherited from Object.)|
|GetType||Gets the Type of the current instance. (Inherited from Object.)|
|MemberwiseClone||Creates a shallow copy of the current Object. (Inherited from Object.)|
|ToString||Returns a string that represents the current object. (Inherited from Object.)|
The following code example illustrates the use of this type.
Private Sub dataGridView1_DefaultValuesNeeded(ByVal sender As Object, _ ByVal e As System.Windows.Forms.DataGridViewRowEventArgs) _ Handles dataGridView1.DefaultValuesNeeded With e.Row .Cells("Region").Value = "WA" .Cells("City").Value = "Redmond" .Cells("PostalCode").Value = "98052-6399" .Cells("Country").Value = "USA" .Cells("CustomerID").Value = NewCustomerId() End With End Sub