CommandField: Can I prohibit Update and Cancel when Edit clicked
<p>i am using vs2010, .net 4. the first column in my gridview is a CommandField which on initial rendering shows Edit Delete and Set Default as linkbuttons. when Edit clicked i have a popup with a form which when accepted updates my database. my problem is that CommandField shows Update and Cancel which i dont want. </p>

<p>is there a way to prevent the Update and Cancel when Edit is clicked.</p>

<p>thanks in advance for any help.</p>

<p>this is my partial gridview:</p>

<pre><code>                            &lt;asp:GridView runat="server" ID="lstComponents" Width="100%" BorderWidth="1px" BorderStyle="None"
                                EnableViewState="True" AutoGenerateColumns="False"  DataKeyNames="ComponentID,ComponentName,ComponentType,IPAddress" 
                                CellPadding="0" CellSpacing="0" OnRowDataBound="lstComponents_RowDataBound" AllowSorting="false"
                                HeaderStyle-CssClass="ListHeader" HeaderStyle-ForeColor="White" OnSelectedIndexChanging="lstComponents_SelectedIndexChanging"
                                OnRowEditing="lstComponents_RowEditing" OnRowDeleting="lstComponents_RowDeleting" &gt;
                                &lt;Columns&gt;
                                    &lt;asp:CommandField  ShowDeleteButton="true" ShowSelectButton="true" ShowEditButton="True"
                                        HeaderStyle-CssClass="ListHeader" SelectText="Set Default" ItemStyle-CssClass="ListData"
                                        HeaderStyle-Width="150px"&gt;
                                        &lt;HeaderStyle CssClass="ListHeader" Width="150px" /&gt;
                                        &lt;ItemStyle CssClass="ListData" /&gt;
                                    &lt;/asp:CommandField&gt;
</code></pre>
