Yep.. it works like a champ. Only thing will be that on post backs you will
have to do the right type casting.
myGrid.DataSource = (DataSet)Session["hereismydata"];
--
Naveen K Kohli
http://www.netomatix.com
"Atif Jalal" <> wrote in message
news: om...
> Is it possible to have a session object as a datasource for datagrid
> control. AS I will be adding rows dynamically. So if I store it in
> session on the fly and update the datagrid, will that work? The
> session will store an object with many data members, which can be the
> columns for datagrid. I don't want to store in database as, untill the
> user hit the save button, the new row to be added to the datagrid is
> not supposed to be added to database. As user may delete the new row
> added to datagrid, before saving the data to database.
>
> Help appreciated.