refer the following code
<asp:GridView ID="grvTest" runat="server" AutoGenerateColumns="false"
onrowcommand="grvTest_RowCommand">
<Columns>
<asp:BoundField DataField="Name" HeaderText="Name" />
<asp:TemplateField>
<ItemTemplate>
<asp:LinkButton ID="lnkTest" runat="server" Text="Move" CommandName="Move"></asp:LinkButton>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
protected void grvTest_RowCommand(object sender, GridViewCommandEventArgs e)
{
if (e.CommandName == "Move")
{
GridViewRow row=(GridViewRow)((LinkButton)e.CommandSource).NamingContainer;
string name = row.Cells[0].Text;
Response.Redirect("Page2.aspx?name=" + name);
}
}
collect all grid cell values and form the url as given above