Hi. I have a gridview in a panel in an updatepanel and in a div on a webpage. The user does not want paging in the gridview, so I have scroll controls in the panel. When the I click Edit on the row I want to change, the gridview goes to the first row after the postback.
I have set MaintainScrollPositionOnPostBack = True in the asp page :
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="InvCount.aspx.vb" Inherits="BuildingMaterials.InvCount" MaintainScrollPositionOnPostback="true" %>
and in the SelectedIndexChanged sub:
Protected Sub GridView1_SelectedIndexChanged(ByVal sender As Object, ByVal e As EventArgs) Handles GridView1.SelectedIndexChanged
GridView1.SelectedRow.Controls(0).Focus()
End Sub
What else can I do?
Thanks,
Cathy