This is the error I'm getting. Basically what is happening is I'm creating a new product, associating parts to the new product but after the new product has been created and added to my data grid view (save button), when I return to modify the product and add additional parts, I get this error 2
This is my modify product page. Everything works until this point. This is a newly created product (I have pre-populated the main form grids) but when I click to add a new part, I get that error message from the screenshot. 1
This is my button for adding parts (bindinglist) to associated parts grid for the newly created product.
private void BtnAdd_Click(object sender, EventArgs e)
{
Part part = (Part)dgvAllParts.CurrentRow.DataBoundItem;
prodToMod.AssociatedParts.Insert(part.PartID - 1, part);
}