title: Telerik RadGrid Need in Edit Mode
body: <p>I have the following in my .aspx file. When the user clicks on Edit, I like it to show a form where they can Update or Cancel. Currently when I click on Edit, it does nothing. Note that am handling the datasource from the code behind. As such, I do not have a  DataSource within the .aspx file for the RadGrid:</p>
  
  <p>Here is my code:</p>
  
  <pre><code>     &lt;telerik:RadGrid ID="rdClosedLoop" runat="server" GridLines="None" OnDeleteCommand="DeleteClosedLoop"
                  Skin="Metro" ActiveItemStyle-HorizontalAlign="Center"  AutoGenerateEditColumn="true" &gt;
                  &lt;MasterTableView EditMode="EditForms" AutoGenerateColumns="False" DataKeyNames="ID" &gt;                       
                      &lt;RowIndicatorColumn&gt;
                          &lt;HeaderStyle Width="20px" /&gt;
                      &lt;/RowIndicatorColumn&gt;
                      &lt;ExpandCollapseColumn&gt;
                          &lt;HeaderStyle Width="20px" /&gt;
                      &lt;/ExpandCollapseColumn&gt;
                      &lt;Columns&gt;                                                         
  
  
                            &lt;telerik:GridBoundColumn DataField="ID" HeaderText="ID" SortExpression="ID"  EditFormColumnIndex="0"
                              UniqueName="ID" HeaderStyle-HorizontalAlign="Center"&gt;
                          &lt;/telerik:GridBoundColumn&gt;    
  
                          &lt;telerik:GridBoundColumn DataField="ActiveInhibitor" HeaderText="ActiveInhibitor" SortExpression="ActiveInhibitor"  EditFormColumnIndex="0"
                              UniqueName="ActiveInhibitor" HeaderStyle-HorizontalAlign="Center"&gt;
                          &lt;/telerik:GridBoundColumn&gt;      
  
  
  
                          &lt;telerik:GridBoundColumn DataField="Conductivity" HeaderText="Conductivity" SortExpression="Conductivity"  EditFormColumnIndex="0"
                              UniqueName="Conductivity" HeaderStyle-HorizontalAlign="Center"&gt;
                          &lt;/telerik:GridBoundColumn&gt;                                                                                               
  
                           &lt;telerik:GridButtonColumn CommandName="Delete" Text="Delete" UniqueName="DeleteColumn"&gt;
                          &lt;/telerik:GridButtonColumn&gt;
  
                      &lt;/Columns&gt;
  
                        &lt;EditFormSettings ColumnNumber="1" CaptionFormatString="Edit for ID {0}"
                  CaptionDataField="ID"&gt;
                  &lt;FormTableItemStyle Wrap="False"&gt;&lt;/FormTableItemStyle&gt;
                  &lt;FormCaptionStyle CssClass="EditFormHeader"&gt;&lt;/FormCaptionStyle&gt;
                  &lt;FormMainTableStyle GridLines="None" CellSpacing="0" CellPadding="3" Width="100%"&gt;
                  &lt;/FormMainTableStyle&gt;
                  &lt;FormTableStyle GridLines="Horizontal" CellSpacing="0" CellPadding="2" CssClass="module"
                      Height="110px" Width="100%"&gt;&lt;/FormTableStyle&gt;
                  &lt;FormTableAlternatingItemStyle Wrap="False"&gt;&lt;/FormTableAlternatingItemStyle&gt;
                  &lt;FormStyle Width="100%" BackColor="#eef2ea"&gt;&lt;/FormStyle&gt;
                  &lt;EditColumn UpdateText="Update record" UniqueName="EditCommandColumn1" CancelText="Cancel edit"&gt;
                  &lt;/EditColumn&gt;
                  &lt;FormTableButtonRowStyle HorizontalAlign="Left" CssClass="EditFormButtonRow"&gt;&lt;/FormTableButtonRowStyle&gt;
              &lt;/EditFormSettings&gt;
  
                  &lt;/MasterTableView&gt;
                  &lt;HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default" EnableImageSprites="True"&gt;
                  &lt;/HeaderContextMenu&gt;
              &lt;/telerik:RadGrid&gt;
  </code></pre>
  
  <p>Code behind:</p>
  
  <pre><code>    protected void btnClosedLoop_Click(object sender, EventArgs e)
      {
          // Note - verId is based on some conditions
  
          var resultCLList = (from ms in db.ver_ClosedLoop
                          where ms.VerificationId == verId
                          select ms).ToList();
  
  
          rdClosedLoop.DataSource = resultCLList;
          rdClosedLoop.DataBind();
  
      }
  </code></pre>