I got a peculiar issue while trying to delete the records from Datagrid. "Uncommitted new row cannot be deleted."
Reason: The issue is due to the transaction which is not closed.
Solution : Change the porperty of the data gridview -> AllowUserToAddRows property to false
Cheers,
Venkatesan Prabu .J
Head, KaaShiv InfoTech
http://www.kaashivinfotech.com/
Uncommitted new row cannot be deleted.
Uncommitted new row cannot be deleted error in C# with GridView Control.


Faisal SaleemPosted Nov 27, 2012, 5:11 AM EST
good solution, but using this you 've to controll the position of a cursor. it should not goes in to DGV_RowValidating event durrig of row removing process. This can be controlled by declare a boolean varriable in a form. If anybody face problem, he/she can conact me at [email protected]. Faisal Saleem