Gridview and formview syncing
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)
But I think this is not a good reliable solution.
Last Post: 08-15-2006, 06:42 AM
By bdc604 in forum ASP.NET
Last Post: 07-01-2006, 04:42 PM
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center