Does the datagridview RowCount include the addnew row?
Posted on 2006-06-13
I'm using a datagridview to store some data which I populated through a OdbcDataReader. I loop through the rows and perform a delete (on certain rows) using:
The last record reports the following error:
Uncommitted new row cannot be deleted.
The only reason I can figure why I'm getting the error is if the Add New Row is included in the datagridview rowcount property. Since I can't base code on a hunch I'm looking for some confirmation.