In Asp.net 4.0 we have a new property "Enablepersistedselection" of gridview control.
In previous version of Asp.net if we select 4th item on the 2nd page then we move to the 3rd page, the 4th item in the 3rd page also selected.This was because the row selection in a gridview control was based on the row index on the page.This problem has been solved in Asp.net 4.0 by including a new feature known as "Enablepersistedselection" selection property
of the control to true.
This property is also working in listview control. The earlier version of the listview control required you to specify a layout template , Which contained a server control with a known ID. This has been removed in the new version of listview control.