title: gridview edit command error. row does not change mode to update
body: <p>i have gridview and I am not very expert with the asp.net Edit, Delete, Update commands of the gridview row. Here I want to change the gridview row mode to edit by clicking the edit mode. but it does nothing when I click the edit button. can somebody check what can be wrong? </p>
  
  <pre><code>   &lt;asp:GridView ID="GridViewTopics" runat="server" AutoGenerateColumns="False" DataKeyNames="Id"
                              GridLines="Horizontal" OnRowEditing="GridViewTopics_RowEditing" CssClass="gridstyle"
                              Style="margin-left: 30px;" Width="230px"&gt;
                              &lt;Columns&gt;
                                  &lt;asp:TemplateField HeaderText="Topics"&gt;
                                      &lt;ItemTemplate&gt;
                                          &lt;table&gt;
                                              &lt;tr&gt;
                                                  &lt;td&gt;
                                                      &lt;div&gt;
                                                          &lt;asp:Label ID="LabelTopicName" runat="server" Text='&lt;%# Eval("Name") %&gt;'&gt;&lt;/asp:Label&gt;
                                                      &lt;/div&gt;
                                                  &lt;/td&gt;
                                                  &lt;td valign="top" align="right" &gt;
                                                      &lt;div&gt;
                                                          &lt;asp:LinkButton ID="LinkButtonEdit" runat="server" Text="Edit" CommandName="Edit"&gt;&lt;/asp:LinkButton&gt;
                                                      &lt;/div&gt;
                                                  &lt;/td&gt;
                                              &lt;/tr&gt;
                                          &lt;/table&gt;
                                      &lt;/ItemTemplate&gt;
                                      &lt;EditItemTemplate&gt;
                                          &lt;asp:TextBox ID="TextBoxEditTopicName" runat="server" Text='&lt;%# Bind("Name") %&gt;'&gt;&lt;/asp:TextBox&gt;
                                          &lt;asp:LinkButton ID="LinkButtonUpdate" runat="server" CausesValidation="True" CommandName="Update"
                                              Text="Update"&gt;&lt;/asp:LinkButton&gt;
                                          &lt;asp:LinkButton ID="LinkButtonCancel" runat="server" CausesValidation="False" CommandName="Cancel"
                                              Text="Cancel"&gt;&lt;/asp:LinkButton&gt;
                                      &lt;/EditItemTemplate&gt;
                                  &lt;/asp:TemplateField&gt;
                              &lt;/Columns&gt;
                              &lt;HeaderStyle CssClass="headerclass" /&gt;
                          &lt;/asp:GridView&gt;
  </code></pre>