none
Visual C# Tableadapter Update Problems RRS feed

  • Question

  • I have a form that allows me to add, edit records. I can add one record but cannot add another record or edit the added record. I am receiving the following rather nondescript error - Update requires a valid UpdateCommand when passed DataRow collection with modified rows.

    The code I am using is as follows:

    ryukyuStampBindingSource1.EndEdit();
    ryukyuStampTableAdapter.Update(ryukyuDataSet.RyukyuStamp);

    This worked when I first started building the application. It just sort of stopped.

    The data base structure is Table 1 has a 1 to many relationship to the Table 2 which I am trying to work with.
    I have no problems adding, editing Table 1.

    Tuesday, February 2, 2010 6:21 PM

All replies