-
Gridview and formview syncing
Hi,
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,
Gert
Similar Threads
-
Replies: 0
Last Post: 08-15-2006, 06:42 AM
-
By bdc604 in forum ASP.NET
Replies: 5
Last Post: 07-01-2006, 04:42 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
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
|
Bookmarks