Abrar Ahmad
asked on
Exception in datagridview "operation did not succeed successfully because program not commit or quite cell value change"
Im using datagridview in c#. when i add a new row in datagridview programmaticlly it shows error like "operation did not succeed successfully because program not commit or quite cell value change. but remember it shows error when i remove first item of datagridview and add new row again
here is code to add item in datagridview DataGridViewRow row = (DataGridViewRow)dgInvcProductList.Rows[0].Clone(); row.Cells[0].Value = productID; row.Cells[1].Value = name; row.Cells[2].Value = Detail; row.Cells[3].Value = Size; row.Cells[4].Value = Sale_Price; row.Cells[5].Value = Quantity; row.Cells[6].Value = totalPrice.ToString(); row.Cells[7].Value = Sale_Unit; dgInvcProductList.Rows.Add(row);
This question needs an answer!
Become an EE member today
7 DAY FREE TRIALMembers can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Form1.cs -
Open in new window
Form1.Designer.cs -Open in new window
-saige-