I have a BindingList bound to a GridView. I can make changes to the grid which are reflected back into the BindingList. The BindingList is filled from a linq result set. How do I move the changes in the BindingList back to the database?
The above code is what is used to fill the BindingList. The return value is the set to the DataSource property of the GridView.
TRACKING[] data = (from t in context.TRACKINGs
where SqlMethods.Like(t.EHT_ISO_DWG, "%02-02%")
select t).ToArray();
return new BindingList<
TRACKING
>(data);
The above code is what is used to fill the BindingList. The return value is the set to the DataSource property of the GridView.