How to disable inline editing in GridView?
<p>I am using ASP.NET C# Grid View, i want to edit data in control which display on same page. but when i wrote grid view row editing event it display text boxes in grid view row, Can any one help me how to disable inline editing in grid view using rowediting event?</p>

<pre><code>&lt;asp:GridView ID="gvItems" runat="server" AutoGenerateColumns="False" AllowPaging="True"
            BorderStyle="Solid" BorderWidth="1px" CellPadding="4" ForeColor="#333333" GridLines="None"
            OnPageIndexChanging="gvItems_PageIndexChanging" Width="901px"
            OnRowCommand="gvItems_RowCommand" OnSelectedIndexChanged="gvItems_SelectedIndexChanged" OnRowDataBound="gvItems_RowDataBound" OnRowEditing="gvItems_RowEditing"&gt;
            &lt;AlternatingRowStyle BackColor="White" /&gt;
            &lt;Columns&gt;
                &lt;asp:ButtonField  Text="Edit" CommandName="Change" /&gt;
                &lt;asp:ButtonField  Text="Addend" CommandName="Addend"  /&gt;
                &lt;asp:BoundField DataField="ItemID" HeaderText="ID" /&gt;
                &lt;asp:BoundField DataField="Project" HeaderText="Project" SortExpression="Project" /&gt;
                &lt;asp:BoundField DataField="Type" HeaderText="Type" /&gt;
                &lt;asp:BoundField DataField="Release" HeaderText="Release" /&gt;
                &lt;asp:BoundField DataField="Priority" HeaderText="Priority" /&gt;
                &lt;asp:BoundField DataField="Severity" HeaderText="Severity" /&gt;
                &lt;asp:BoundField DataField="Client" HeaderText="Client" /&gt;
                &lt;asp:BoundField DataField="Status" HeaderText="Status" /&gt;
                &lt;asp:BoundField DataField="Subject" HeaderText="Subject" /&gt;
                &lt;asp:BoundField DataField="CreatedDate" DataFormatString="{0:d}" HeaderText="Created Date" /&gt;

                &lt;asp:TemplateField&gt;
                    &lt;ItemTemplate&gt;
                        &lt;!--To fire the OnRowEditing event.--&gt;
                        &lt;asp:LinkButton ID="lbView" runat="server" CommandName="View"
                            Text="View" CommandArgument="&lt;%# Container.DataItemIndex %&gt;"&gt;
                        &lt;/asp:LinkButton&gt;
                      &lt;asp:HiddenField runat="server" ID="hdnItemID" Value='&lt;%#Eval("ItemID") %&gt;'&gt;
                                    &lt;/asp:HiddenField&gt;
                    &lt;/ItemTemplate&gt;
                &lt;/asp:TemplateField&gt;
            &lt;/Columns&gt;

            &lt;FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" /&gt;
            &lt;HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="White" HorizontalAlign="Left" /&gt;
            &lt;PagerSettings Mode="NumericFirstLast" /&gt;
            &lt;PagerStyle BackColor="#FFCC66" ForeColor="#333333" HorizontalAlign="Center" /&gt;
            &lt;RowStyle BackColor="#FFFBD6" ForeColor="#333333" /&gt;
            &lt;SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" /&gt;
            &lt;SortedAscendingCellStyle BackColor="#FDF5AC" /&gt;
            &lt;SortedAscendingHeaderStyle BackColor="#4D0000" /&gt;
            &lt;SortedDescendingCellStyle BackColor="#FCF6C0" /&gt;
            &lt;SortedDescendingHeaderStyle BackColor="#820000" /&gt;
        &lt;/asp:GridView&gt;
</code></pre>
