title: Gridview click on header for sorting triggering row command
body: <p>I have a fairly simple GridView. This is the markup for Columns:</p>
  
  <pre><code> &lt;Columns&gt;
                  &lt;asp:TemplateField HeaderText="JD Name" SortExpression="FullName"
                      HeaderStyle-HorizontalAlign="Center" ItemStyle-Width="180px" &gt;
                      &lt;ItemTemplate&gt;
                          &lt;asp:LinkButton CommandName="edt" CommandArgument='&lt;%#Eval("JurisdictionID") %&gt;' runat="server" Text='&lt;%#Eval("FullName") %&gt;' /&gt;
                      &lt;/ItemTemplate&gt;
                  &lt;/asp:TemplateField&gt;
  
                  &lt;asp:BoundField HeaderText="JD Abbreviation" ItemStyle-Width="200px"  DataField="JDAbbreviation" SortExpression="JDAbbreviation"
                      HeaderStyle-HorizontalAlign="Center" /&gt;
  
                   &lt;asp:TemplateField 
                      HeaderStyle-HorizontalAlign="Center" &gt;
                      &lt;ItemTemplate&gt;
                          &lt;asp:LinkButton ID="lnkStat" CommandName="inac" CommandArgument='&lt;%#Eval("JurisdictionID") %&gt;' 
                          runat="server" Text='&lt;%#Utils.GetStatusString((bool) Eval("IsActive")) %&gt;' /&gt;
                      &lt;/ItemTemplate&gt;
                  &lt;/asp:TemplateField&gt;
  
              &lt;/Columns&gt;
  </code></pre>
  
  <p>However, when I click on of the columns for sorting, it first triggers a row command event and then comes to sorting event. Can anybody tell me what is the mistake I am doing? In the RowCommand argument I get the SortExpression. This is really funny for me!</p>