title: Updating records using radgrid
body: <p>here is my code </p>
  
  <p>aspx</p>
  
  <pre><code> &lt;telerik:GridEditCommandColumn HeaderStyle-Width="25px" EditImageUrl="../images/Edit.gif"
                      ButtonType="ImageButton" ItemStyle-HorizontalAlign="Right"&gt;
                  &lt;/telerik:GridEditCommandColumn&gt;
                  &lt;telerik:GridTemplateColumn HeaderText="Comments" HeaderStyle-Width="400px" DataField="Comments"
                      HeaderStyle-CssClass="tblHeaderNoBorder"&gt;
                      &lt;ItemTemplate&gt;
                          &lt;asp:Label runat="server" ID="lblComments" Text='&lt;%# Eval("Comments") %&gt;' /&gt;
                      &lt;/ItemTemplate&gt;
                      &lt;EditItemTemplate&gt;
                          &lt;telerik:RadTextBox ID="txtComments" runat="server" Height="40px" Width="100%" TextMode="MultiLine"
                              Enabled="true" Text='&lt;%# Eval("Comments") %&gt;' BackColor="LightPink"&gt;
                          &lt;/telerik:RadTextBox&gt;&lt;/EditItemTemplate&gt;
                  &lt;/telerik:GridTemplateColumn&gt;
  </code></pre>
  
  <p>aspx.cs</p>
  
  <pre><code>protected void RadGrid1_UpdateCommand(object source, GridCommandEventArgs e)
      {
       if ((e.Item is GridEditableItem) &amp;&amp; (e.Item.IsInEditMode))
              {
                  GridEditableItem item = (GridEditableItem)e.Item;
                  RadTextBox txtComments = (RadTextBox)item.FindControl("txtComments");
                  RadGrid1.DataBind();
              }
  </code></pre>
  
  <p>here's the scenario, when i click on the update this must update the record.
  how can i update the record? please help me.</p>
  
  <p>I also set AllowAutomaticUpdate = "true"</p>