R
Robert Roney via .NET 247
I've created a DataGrid full of template columns to allow my userto simultaneously edit any of the rows. Everything functionsfine, until I try to save the data. The issue involved is thatthe DataGrid is based on a Sorted DataView. If the field Iupdate in the DataGrid was part of the sort, the DataViewupdates it's index/sort immediately after each record, thus whenthe record following is reached, the dataview sequence no longermatches the grid sequence. Is there a way of disabling thisre-sorting until I've rebound all the datagrid to thedataview/dataset?
i.e. 1 a, 2 b, 3 c...
If the grid is sorted by letters and you change the 'b' to a 'd',everything saves back fine until you reach the 3rd record. Atthis poing the dataview sequence is 1 a, 3 c, 2 d while thegrid holds 1 a, 2 d, 3 c
I've tried a number of things but have had no luck to date. Anyhelp is appreciated
i.e. 1 a, 2 b, 3 c...
If the grid is sorted by letters and you change the 'b' to a 'd',everything saves back fine until you reach the 3rd record. Atthis poing the dataview sequence is 1 a, 3 c, 2 d while thegrid holds 1 a, 2 d, 3 c
I've tried a number of things but have had no luck to date. Anyhelp is appreciated