Store datatable in session.
If session found then use datatable from the session else create new object of datatable.
DataTable dt;
if(Session["dt"]!=null)
{
dt = (Datatable)Session["dt"];
}else
{
dt = new DataTable();
dt.Columns.Add("Name");
dt.Columns.Add("Address");
dt.Columns.Add("Password");
}
DataRow dr = dt.NewRow();
dr["Name"] = TextBox1.Text;
dr["Address"] = TextBox2.Text;
dr["Password"] = TextBox3.Text;
dt.Rows.Add(dr);
GridView1.DataSource = dt;
GridView1.DataBind();
Session["dt"] = dt;
Hope this will help :)
Thanks
Vinod