Hi,
you can pass them in following ways.
pass those ids in querystring
store those ids in session in firstpage use them in second page.
after completion of checkbox selection user clicks submit button right.
in submit button write code just as following
string qry="";
foreach(datalistitem fti in datalist1.items)
{
checkbox cchb=(checkbox)dti.fincontrol("checkbox1");
if(cchb.checked)
{
if(qry.length==0)
{
qry=qry+((Label)dti.findcontrol("Lblid")).Text;
}
else
{
qry=qry+","+((Label)dti.findcontrol("Lblid")).Text;
}
}
}
Session["ids"]=qry;
response.redirect("default2.aspx?ids="ids);
Her i used datalist control you can use gried also with some changes like grid.rows
you can use either session or query string value in default2.aspx page
in second page you can get related data based on ids
All the Best