newbie trying to preserve page view

A

acher

Hi there.
I'moving from Java to .NET and going through the learning curve. Here
is the problem. My Web grid has three bands. I add a row to the last
grid via JScript, you know using igtbl_addNew. The row is added and
then control goes to the _AddRow method which automatically populates
the columns of the new row. Once the page posts bac, all of the rows
that have been expanded are now collapsed.
I implemented LoadPageStateFromPersistenceMedium()
doing:
LosFormatter formatter = new LosFormatter();
object sessionViewState = Session["pageView"];
viewState = formatter.Deserialize(sessionViewState.ToString());
return viewState;
and
SavePageStateToPersistenceMedium(object viewState)
doing
LosFormatter formatter = new LosFormatter();
object sessionViewState = Session["pageView"];
viewState = formatter.Deserialize(sessionViewState.ToString());

formatter.Serialize(writer,viewState);
Session["pageView"] = writer.ToString();

I set all possible values on the grid to ViewState=true etc. The page
is still coming back from the post with a collapsed rows.

Please help
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,785
Messages
2,569,624
Members
45,319
Latest member
LorenFlann

Latest Threads

Top