title: OnClick of Checkbox selecting row and Open the Row on Button Click with existing data
body: <p>I m stucked here very much and it is going some serious.</p>
  
  <p>I have a Gridview which I am using to show the data from the backend. What I did is For inserting the data, I have made a button on top of the Gridview to add the data in the gridview.</p>
  
  <p>Like this:-</p>
  
  <pre><code>&lt;asp:Button ID="btnAdd" runat="server" CssClass="btn btn-prm" Text="Add" Width="75" CausesValidation="true" ValidationGroup="AddNew" OnClick="btnAdd_Click" /&gt;
  </code></pre>
  
  <p>The same is been done for <code>Edit</code> part also.</p>
  
  <p>I have added a checkbox to select the row for the gridview.See my gridview code for better understanding,</p>
  
  <pre><code>&lt;asp:GridView ID="grdCSRPageData" runat="server" Width="100%" border="1" Style="border: 1px solid #E5E5E5;" CellPadding="3"
                  AutoGenerateColumns="False" OnDataBound="grdCSRPageData_DataBound" AllowPaging="true" CssClass="hoverTable"
                  OnPageIndexChanging="grdCSRPageData_PageIndexChanging" DataKeyNames="Id" OnRowDeleting="grdCSRPageData_RowDeleting" 
                  PageSize="5" ShowFooter="true" OnRowEditing="grdCSRPageData_RowEditing" OnRowUpdating="grdCSRPageData_RowUpdating" 
                  OnRowCancelingEdit="grdCSRPageData_RowCancelingEdit"&gt;
                  &lt;AlternatingRowStyle CssClass="k-alt" BackColor="#f5f5f5"/&gt;
                  &lt;Columns&gt;
                      &lt;asp:TemplateField HeaderText="Action" HeaderStyle-Width="5%" HeaderStyle-CssClass="k-grid td" &gt;
                          &lt;ItemTemplate&gt;
                              &lt;asp:Checkbox ID="chkSelect" runat="server" AutoPostBack="false" /&gt;
                          &lt;/ItemTemplate&gt;
                      &lt;/asp:TemplateField&gt;
                      &lt;asp:BoundField DataField="page_title"  HeaderText="Page Title" ItemStyle-Width="30" HeaderStyle-CssClass="k-grid td"  /&gt;
                      &lt;asp:BoundField DataField="page_description" HeaderText="Page Description" ItemStyle-Width="30" HeaderStyle-CssClass="k-grid td" /&gt;
                      &lt;asp:BoundField DataField="meta_title" HeaderText="Meta Title" ItemStyle-Width="30" HeaderStyle-CssClass="k-grid td" /&gt;
                      &lt;asp:BoundField DataField="meta_keywords" HeaderText="Meta Keywords" ItemStyle-Width="30" HeaderStyle-CssClass="k-grid td" /&gt;
                      &lt;asp:BoundField DataField="meta_description" HeaderText="Meta Description" ItemStyle-Width="30" HeaderStyle-CssClass="k-grid td" /&gt;
                      &lt;asp:BoundField DataField="Active" HeaderText="Active" ItemStyle-Width="30" HeaderStyle-CssClass="k-grid td" /&gt;
                      &lt;asp:TemplateField HeaderText="Action" HeaderStyle-Width="15%" HeaderStyle-CssClass="k-grid td" &gt;
                          &lt;ItemTemplate&gt;
                              &lt;asp:ImageButton ID="btnDelete" AlternateText="Delete" ImageUrl="~/images/delete.png" runat="server" Width="15" Height="15" CommandName="Delete" CommandArgument='&lt;%# Eval("Id") %&gt;' CausesValidation="false" OnClientClick="return confirm('Are you sure you want to delete this record?')" /&gt;
                          &lt;/ItemTemplate&gt;
                      &lt;/asp:TemplateField&gt;
                      &lt;asp:CommandField ButtonType="Image" ItemStyle-Width="15" EditImageUrl="~/images/edit.png" ShowEditButton="True" ControlStyle-Width="15" ControlStyle-Height="15" CancelImageUrl="~/images/close.png" UpdateImageUrl="~/images/update.png"&gt;
                          &lt;ControlStyle Height="20px" Width="20px"&gt;&lt;/ControlStyle&gt;
                      &lt;/asp:CommandField&gt;
                  &lt;/Columns&gt;
              &lt;/asp:GridView&gt;
  </code></pre>
  
  <p>Now what my requirement is. Whenever I check the checkbox for any row, and click on the Update button, the repsective <code>Row</code> should get open in a popup with the existing data as it is getting for adding the new Row. I tried but couldn't succeed. Please help me with this. Let me know if you need anything else.</p>
  
  <p>Thanks.!</p>