Here is a good one! When getting the dgData of a data grid, are the numbered keys the lines (so the current sort affects it), or are they the indexes (the order the records were in when the dgData was set)? Bob S