There was a problem with the removal of rows from the dataSet associated with the * .mdf database. The connection between them was created automatically in Visual Studio. The database has two tables connected by a key. When you delete the parent table, everything goes fine, but when you delete a child table with the command:
database1DataSet.Products.Rows[currRow2].Delete();
an error is issued:
Deleted row information cannot be accessed through the row.
According to the advice in SO added the line:
database1DataSet.AcceptChanges();
But now another error:
This row has been removed from the table. Data in this row.
It is issued when executing the following code:
public string Производитель { get { return ((string)(this[this.tableProducts.ПроизводительColumn])); } set { this[this.tableProducts.ПроизводительColumn] = value; } } In class
public partial class ProductsRow : global::System.Data.DataRow
designer dataSet.
There are almost no tips to solve it, so I decided to write here. Thank you in advance for your response.