Is it possible to use both gridview1_rowcommand and gridview1_rowdeleting together?
<p>I have a gridview which is like</p>

<pre><code>&lt;asp:TemplateField HeaderText="File Name" SortExpression="FileName"&gt;
   &lt;ItemTemplate&gt;
     &lt;asp:LinkButton ID="lnkname" runat="server" Text='&lt;%#Eval("FileName") %&gt;' CommandName='&lt;%#Eval("FileName") %&gt;'&gt;
     &lt;/asp:LinkButton&gt;

   &lt;/ItemTemplate&gt;
&lt;/asp:TemplateField&gt;
&lt;asp:CommandField ShowDeleteButton="True" &gt;
  &lt;ControlStyle ForeColor="Red" /&gt;
&lt;/asp:CommandField&gt;
</code></pre>

<p>Rowcommand part works well. When I click on delete, the control goes to <code>gridview1_rowcommand</code> instead of <code>gridview1_rowdeleting</code> and gives error. </p>

<p>How can I make this work?</p>
