none
Update DataRow within DataRow[] Array and then sync it back to the DataSet RRS feed

  • Question

  • Hi folks,

    Does anyone know how can I update DataRow column value within my DataRow[] array and then sync it back to the DataTable's DataSet with my update?

    This is my code for now:

    DataRow[] Cars = CarsDS.CarsDT.Select(model = 2009);
    foreach(DataRow car in Cars)
    {
     car["ModelColor"] = 'Red';
    }
    //TODO: Synchronization

    After change the ModelColor to 'Red', I want to effect the the CarsDS.CarsDT in order to have the new value(Red) for all Cars Model 2009.

    Does anyone know how can I do this sync between the DataRow[] array and the DataSet?

    Thank you all.

    Yair

    Friday, June 4, 2010 8:07 AM

Answers

All replies