How do you disable editmode in gridview?
===

I have a gridview which works fine.  But it get into edit mode whenever command button is clicked.  Is there anyway to stop this?

    <asp:GridView id="grv_purchaseOrder" runat="server" AutoGenerateColumns="False" 
        onrowdatabound="grv_purchaseOrder_RowDataBound"  ShowFooter="True"
        EmptyDataText="No Purchase Order were found." DataKeyNames="purchaseOrderID" 
    onrowcommand="grv_purchaseOrder_RowCommand" 
        onrowediting="grv_purchaseOrder_RowEditing">
        <Columns>
            <asp:TemplateField ShowHeader="False">
                <ItemTemplate>
                    <asp:Button ID="but_purchaseOrderDetails" runat="server" CommandArgument='<%# DataBinder.Eval(Container, "RowIndex") %>'
                        CausesValidation="false" CommandName="edit" Text="Detail" />
                </ItemTemplate>
                <FooterTemplate>
                    <asp:Button ID="but_newOrderDetails" runat="server" CausesValidation="false"  commandargument="0"
                        CommandName="new" Text="New" />
                </FooterTemplate>
            </asp:TemplateField>
            <asp:BoundField DataField="name" HeaderText="Name" />
            <asp:TemplateField HeaderText="Date">
                <ItemTemplate>
                    <asp:Label ID="lbl_dateCreated" runat="server" Text='<%# Bind("dateCreated") %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField DataField="purchaseOrderStatus" HeaderText="Status" />
        </Columns>
    </asp:GridView>

Specifically the but_newOrderDetails is putting the gridview in edit mode.

I also try to put grv_purchaseOrder.EditIndex = -1; in rowEditing event, but it doesn't do anything.