.NET Framework (current version)
Gets a value indicating whether the row is the row for new records.
System.Windows.Forms (in System.Windows.Forms.dll)
member IsNewRow : bool with get
true if the row is the last row in the DataGridView, which is used for the entry of a new row of data; otherwise, false.
Because the row for new records is in the Rows collection, use the IsNewRow property to determine whether a row is the row for new records or is a populated row.
A row stops being the new row when data entry into the row begins.
The following code example uses the IsNewRow property to prevent attempts to set the label of the row for new records.
No code example is currently available or this language may not be supported.
Return to top
Available since 2.0