By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,914 Members | 1,716 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,914 IT Pros & Developers. It's quick & easy.

Datagrid : viewstate

P: n/a
Reg
Hello,

I already posted a question about a problem with a datagrid.
("Lost columns in datagrid", thanks for JohnH)
I dynamically create columns in a datagrid and the user selects lines
(column of checkbox created in Visual Studio) but the dynamics columns do
not exist any more.
I tried to use ViewState with the datagrid but I encounter problems of
serialisation.
So I use ViewState with my DataSet.
I use this method in order to find my columns by traversing DataSet
I find in another question in this NewsGroup that "Dynamic controls need to
be recreated on every postback.
". I think that is also the case for the columns created dynamically...

Can somebody assure me this point? Is this the only solution?

Thank you for your assistance.

May 10 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Reg - have a look at your original post, I added an update there
regarding ViewState and dynamic columns.

John H.

May 10 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.