Absolutely possible. First you bind your data to gridview on Page_Load Event as follows:
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
}
}
Now you have gridview with four columns NAME,COLLEGE,DEPARTMENT and a checkbox(i assume)
On click event of some button,declare datatable,loop through all the rows and add checked rows to datatable,bind that to gridview.
DataTable dtable = new DataTable();
dtable.Columns.Add(new DataColumn("NAME", typeof(string)));
dtable.Columns.Add(new DataColumn("COLLEGE", typeof(string)));
dtable.Columns.Add(new DataColumn("DEPARTMENT ", typeof(string)));
Session["dt"] = dtable;
foreach (GridViewRow gvrow in yourgridview.Rows)
{
dtable = (DataTable)Session["dt"];
CheckBox chk = (CheckBox)gvrow.Cells[3].FindControl("CheckBox1");
if (chk != null && chk.Checked)
{ DataRow dd = dtable.NewRow();
dd["NAME"] = (gvrow.Cells[0].Text);
dd["COLLEGE"] = (gvrow.Cells[1].Text);
dd["DEPARTMENT "] = (gvrow.Cells[2].Text);
dtable.Rows.Add(dd);
GridView1.DataSource = dtable;
GridView1.DataBind();
}
}
Send this gridview to appropriate page.
Happy coding.. :)