When the datasource is set for a gridview with sorting applied, the first row in the Rows collection is selected rather than the first row in the ChildRows collection. This causes the gridview to scroll to the position of the first row in the datasource rather than the first displayed row in the gridview.
Steps to reproduce:
Set the datasource for the gridview
Sort the gridview
Set the datasource for the gridview again
The first row in the datasource will be selected and scrolled to, rather than the first displayed row.