Gridview edit, click twice problem
<p>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 handler. The problem persist that I only see edit fields after my second click on any of the Edit links.</p>

<pre><code>&lt;%@ Page Title="Home Page" Language="vb" MasterPageFile="~/Site.Master" AutoEventWireup="false"
    CodeBehind="Default.aspx.vb" Inherits="GridViewTest._Default" %&gt;

    &lt;asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent"&gt;
    &lt;/asp:Content&gt;
    &lt;asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent"&gt;
        &lt;h2&gt;
            Welcome to ASP.NET!
        &lt;/h2&gt;
        &lt;p&gt;
            To learn more about ASP.NET visit &lt;a href="http://www.asp.net" title="ASP.NET Website"&gt;www.asp.net&lt;/a&gt;.
            &lt;asp:GridView ID="gvReport" runat="server" AutoGenerateColumns="False" 
                AutoGenerateEditButton="True"&gt;
                &lt;Columns&gt;
                    &lt;asp:BoundField DataField="c1" HeaderText="C1" /&gt;
                    &lt;asp:BoundField DataField="c2" HeaderText="C2" /&gt;
                    &lt;asp:BoundField DataField="c3" HeaderText="C3" /&gt;
                    &lt;asp:BoundField DataField="c4" HeaderText="C4" /&gt;
                    &lt;asp:BoundField DataField="c5" HeaderText="C5" /&gt;
                    &lt;asp:BoundField DataField="c6" HeaderText="C6" /&gt;
                    &lt;asp:BoundField DataField="c7" HeaderText="C7" /&gt;
                    &lt;asp:BoundField DataField="c8" HeaderText="C8" /&gt;
                &lt;/Columns&gt;
            &lt;/asp:GridView&gt;
        &lt;/p&gt;
        &lt;p&gt;
            You can also find &lt;a href="http://go.microsoft.com/fwlink/?LinkID=152368&amp;amp;clcid=0x409"
                title="MSDN ASP.NET Docs"&gt;documentation on ASP.NET at MSDN&lt;/a&gt;.
        &lt;/p&gt;
    &lt;/asp:Content&gt;





    Public Class _Default
        Inherits System.Web.UI.Page

        Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
            If Not IsPostBack Then
                loaddata()
            End If
        End Sub

        Sub loaddata()

        'Get dataview dvAgTarRet_gv



            gvReport.DataSource = dvAgTarRet_gv
                    gvReport.DataBind()
            Session.Add("gvReport", dvAgTarRet_gv)

            end sub
</code></pre>
