How can I select all data from GridView's current row
<p>How can I select all data from <code>GridView</code>s current row..
I have a column for edit link in GridView. When "Edit" link button is clicked, I want to use that selected row's data. I am trying the following code, but it's returning me with an empty value</p>

<pre><code>protected void gv_RowEditing(object sender, GridViewEditEventArgs e)
{
    gv.EditIndex = -1;
    GridViewRow gvRow = gv.Rows[ e.NewEditIndex];
    string selectedID = gvRow.Cells[3].Text;
}

                 &lt;asp:GridView runat = "server" ID="gvRange0" SkinID="gridView"                AutoGenerateColumns="False"  
                            AllowSorting="True"   OnRowCancelingEdit="gvRange_RowCancelingEdit" OnRowDeleting="gvRange_RowDeleting"
                            OnRowEditing="gvRange_RowEditing" OnRowUpdating="gvRange_RowUpdating" 
                                Width="684px"  OnRowDataBound="gvRange_RowDataBound"  
                            DataMember="DefaultView" OnPageIndexChanged="gvRange_PageIndexChanged" 
                            OnPageIndexChanging="gvRange_PageIndexChanging" OnSorting="gvRange_Sorting" DataKeyNames = "RANGE_ID" 
                            OnSelectedIndexChanged="gvRange_SelectedIndexChanged" Height="65px" &gt;
                              &lt;Columns&gt;
                                  &lt;asp:TemplateField ShowHeader="False"&gt;
                                      &lt;ItemTemplate&gt;
                                      &lt;ControlStyle Width="2px" /&gt;
                                          &lt;asp:LinkButton ID="lnkDelete0" runat="server" CssClass="lnk" 
                                              CausesValidation="False" CommandName="Delete"
                                              Text="Delete" Visible="false"&gt;&lt;/asp:LinkButton&gt;
                                          &lt;asp:CheckBox runat="server" ID="chkSelect" CssClass="lbl" Text="" AutoPostBack="False" OnCheckedChanged="chkSelect_CheckedChanged" /&gt;
                                      &lt;/ItemTemplate&gt;
                                  &lt;/asp:TemplateField&gt;
                                  &lt;asp:TemplateField ShowHeader="False"&gt;
                                    &lt;ItemTemplate&gt;
                                    &lt;controlStyle width="2px" /&gt;
                                      &lt;asp:LinkButton ID="lnkEdit" runat="server" CssClass="lnk" CausesValidation="False" CommandName="Edit"
                                        Text="Edit" &gt;&lt;/asp:LinkButton&gt;

                                    &lt;/ItemTemplate&gt;
                                    &lt;ItemStyle Width="5px" /&gt;
                                  &lt;/asp:TemplateField&gt;
                                  &lt;asp:TemplateField HeaderText="Ranges" SortExpression="Sort_Ranges"&gt;
                                      &lt;ControlStyle Width="5px" /&gt;
                                      &lt;ItemTemplate&gt;
                                      &lt;%#DataBinder.Eval(Container.DataItem,"Min_Age") %&gt;

                                      &lt;%# CheckNull(DataBinder.Eval(Container.DataItem,"Max_Age")) %&gt;
                                      &lt;/ItemTemplate&gt;
                                     &lt;%-- &lt;ItemTemplate&gt;--%&gt;
                                          &lt;%--&lt;asp:Label ID="lblStageName" CssClass="lbl" runat="server" Text='&lt;%# Bind("Age_Range") %&gt;' Width="1px"&gt;&lt;/asp:Label&gt;--%&gt;
                                    &lt;%--  &lt;/ItemTemplate&gt;--%&gt;
                                  &lt;/asp:TemplateField&gt;
                                  &lt;asp:TemplateField HeaderText="Range ID"&gt;
                                  &lt;ItemTemplate&gt;&lt;%#DataBinder.Eval(Container.DataItem,"RANGE_ID") %&gt;&lt;/ItemTemplate&gt;
                                  &lt;/asp:TemplateField&gt;
                              &lt;/Columns&gt;                        
                          &lt;/asp:GridView&gt;
</code></pre>

<p>There are 4 columns in the <code>GridView</code>. One contains check box, second is link button for edit, third databound with some value, fourth is the column which I want to use to get some values from database(that is primary key there) and this column is hidden.</p>
