Solution
First of all add Linkbutton in gridview commandbutton and gave id="lk"
Now select gridview event rowdatabound like follow code..
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
LinkButton lk = (LinkButton)(e.Row.Cells[4].Controls[0]);
e.Row.Attributes["OnClick"] = ClientScript.GetPostBackClientHyperlink("lk");
}
}
Step 3..
add EnableEventValidation="false" like following in ur aspx page
<![CDATA[<%@ Page Language="C#" AutoEventWireup="true" EnableEventValidation="false" CodeFile="Default2.aspx.cs" Inherits="Default2" %>
Step 4. Now write code on gridview selected index it will show data 2nd gridview when u select row from one gridview
Thanks