Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Web grd
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Title:
Web grd
Miscellaneous
Thread ID:
01177753
Message ID:
01177753
Views:
67
Hello:

First Question: I am using mmGridView on a web page to allow editing of items. The user is scrolling down the page because there are more items in the grid than fit at the top. The user edits a row and clicks on Update. The web page goes back up to the top of the page. Is there any way to keep the focus on the row that was just edited?

This is the code that is being run:
Protected Sub grdItems_RowUpdating(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewUpdateEventArgs) Handles grdItems.RowUpdating
' Get the item to be updated
Me.grdItems.EditIndex = e.RowIndex
' Retrieve the previous Order Detail DataSet
Dim dsItems As DataSet = CType(Session("dsItems"), DataSet)
' Save the DataSet (the GridView automatically binds back)
Me.Save(Me.oItems, dsItems)
' Reset the edited item and rebind the GridView
Me.grdItems.EditIndex = -1
Me.BindControl(Me.grdItems)
End Sub



Last Question: When should I use the mmGridView and when should I use the mmDataGrid? Is one primarily for editing and one primarily for viewing?

Thanks in advance,
Rick
Richard DeZeeuw
DeZeeuw Software Inc.
Next
Reply
Map
View

Click here to load this message in the networking platform