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
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL