copy row in the bindingsource RRS feed

  • Question

  • BH


    i have a tripsbindingsource that is bound to a database.  I want to create a new row, which is a copy of the selected row (excluding the index column).  To create a new row i'm using:

    ambtrans4Dataset.TripsRow NewTripsRow = ambtrans4DataSet.Trips.NewTripsRow();

    But how do i actually, copy all the information from an existing row to the "NewTripsRow" (excluding indexcolumn)?

    Thanks so much for all your help.


    Thanks Aron

    Thursday, April 5, 2012 3:18 AM


  • hi,

    For Each guest As DataRow In guests
                        newguest = _ds.AppointmentAttendee.NewRow
                        newguest.ItemArray = guest.ItemArray
                        newguest.Item("When_From") = newRowInf.newrow.When_From

    Regards, Nico

    Friday, April 6, 2012 6:40 AM

All replies