|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Viewstate questionHello,
I am adding a new column to my datagrid in the init of my webform. The new column is created in my extended web control which is derived from the datagrid. The usercontrol contains a nested datagrid. Now the problem is that the viewstate of this control is not maintained. Where I am supposed to add this column? Can anybody help me please? Thanks If you're dynamically adding controls then you need to recreate those controls
in Page_Init or override CreateChildControls so that the postback has a chance to map the posted data onto these dynamically created controls. If you wait until Page_Load then it's too late. -Brock DevelopMentor http://staff.develop.com/ballen Show quoteHide quote > Hello, > > I am adding a new column to my datagrid in the init of my webform. > The new column is created in my extended web control which is derived > from the datagrid. The usercontrol contains a nested datagrid. Now the > problem is that the viewstate of this control is not maintained. Where > I am supposed to add this column? Can anybody help me please? > > Thanks >
e.Item.DataItem
2 Performance Questions Background of datagrid moving data from a page to an other page CancelCommand Event Handler Not Firing dataView Need some hints before starting to change a page Disable button in datagird on condition Problem editing checkbox template column populating a datagrid from an array |
|||||||||||||||||||||||