I am using a GridView and I encountered the click twice on the Edit link to see the edit fields problem. Following advice I am binding my GridView again on the .RowEditing h
Found it. Needed to set the gridview's EditIndex and then do a databind.
Private Sub gvReport_RowEditing(sender As Object, e As System.Web.UI.WebControls.GridViewEditEventArgs) Handles gvReport.RowEditing
gvReport.DataSource = CType(Session("gvReport"), DataView)
gvReport.EditIndex = e.NewEditIndex
gvReport.DataBind()
End Sub
Just call your grid binding function:
protected void GvEmployee_RowEditing(object sender, GridViewEditEventArgs e)
{
GvEmployee.EditIndex = e.NewEditIndex;
bindgridview(); // method of binding gridview
}