nebbles
asked on
Does the datagridview RowCount include the addnew row?
Background:
VS 2005
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:
dgvDBF.Rows.RemoveAt(intRo w)
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.
Cheers.
VS 2005
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:
dgvDBF.Rows.RemoveAt(intRo
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.
Cheers.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.