Itemplate viewstate

G

Guest

Hello,
I am trying to create textbox control dynamically into a datagrid.
I do not know the number of columns until run time so I thought I could use
template columns dynamically and add them into the datagrid.
This works fine, but on post back all the data in the datagrid disappears.
Any idea why? I have the bad feeling that the view state has something to
do with it.
I do have viewstate enabled.
Note: I am implementing the Itemplate interface and I have Implemented the
InstantiateIn mehod.
Thanks!
 

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,744
Messages
2,569,483
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top