For the expert a simple thing :

One aspx with a gridview to a sqldatasource, selecting enabled. Now I like to have the record viewed (formview or detailview , still not clear about the difference).

So when I select a row in a gridview the record in the formview should be showed.

At the moment I have:

Protected Sub GridView1_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles GridView1.SelectedIndexChanged
FormView1.PageIndex = GridView1.SelectedIndex + (GridView1.PageIndex * GridView1.PageSize)

End Sub

But I think this is not a good reliable solution.

Please help,