>Al Click event on header, only call oGrid.SortGrid(this.parent.nOrder)
>
>SortGrid, Create a new cursor with a SQL statement With ORDER BY tnOrder and Refresh the Grid
So, now you may trace what line of your code bombs, look at it, and if it's still a problem, then you may post your code here. Obviously, some line there is wrong.
Edward Pikman
Independent Consultant