How to hide Insert form of gridview when inserting row?
<p>I am trying to insert a row in Gridview by using a button and text box outside of the  Gridview, and it is working fine. But whenever I am inserting the row, insert form of Gridview is appearing. How to disable this form?</p>

<p>my button: </p>

<pre><code>protected void btnAdd_Click(object sender, EventArgs e)
    {
        MenuAssignmentGv.AddNewRow();

    }
</code></pre>

<p>my datasource</p>

<pre><code>&lt;asp:SqlDataSource ID="AttdMenuAssignmentDs" runat="server" ConnectionString='&lt;%$ ConnectionStrings:ConnectionString %&gt;' ProviderName='&lt;%$ ConnectionStrings:ConnectionString.ProviderName %&gt;'
        SelectCommand="select mra.RoleAssignmentID, mra.MenuRoleID ,  mr.MenuRole, mn.MenuName, mn.MenuUrl
    from ATTD_MST_MENU mn
    inner join ATTD_MST_MENU_ROLE_ASSIGNMENT mra
    on mn.MenuID=mra.MenuID
    inner join ATTD_MST_MENU_ROLE mr
    on mra.MenuRoleID=mr.MenuRoleID
    where mra.MenuRoleID=@MenuRoleID"
        InsertCommand="INSERT INTO ATTD_MST_MENU_ROLE_ASSIGNMENT(MenuRoleID, MenuID) VALUES (@MenuRoleID, @MenuID)"

        &lt;InsertParameters&gt;
            &lt;asp:ControlParameter ControlID="ddlRole" PropertyName="Value" Name="MenuRoleID" /&gt;
            &lt;asp:ControlParameter ControlID="ddlMenu" PropertyName="Value" Name="MenuID" /&gt;
        &lt;/InsertParameters&gt;
        &lt;SelectParameters&gt;
            &lt;asp:ControlParameter ControlID="ddlRole" PropertyName="Value" Name="MenuRoleID"&gt;&lt;/asp:ControlParameter&gt;
        &lt;/SelectParameters&gt;

    &lt;/asp:SqlDataSource&gt;
</code></pre>

<p>whenever i click the button the form always appear, and then the record inserted after I click Update of that form.<a href="https://i.stack.imgur.com/oWYWa.jpg" rel="nofollow noreferrer">form appear when inserting new row by clicking button</a> </p>