C
Chris Thunell
I have created several grids dynamically and have added them to different
HTML placeholders on a vb.net web form. The grids and controls within them
come up and view beautifully when the web page first starts, but when I
click on a button, and the page comes back, my dynamically created grid and
controls are not visible. Any thoughts? Please view my sample code below.
If Not ispostback then
creategrids
end if
Sub CreateGrids
'lots of code above
phInsulation.Controls.Add(MatrixInsul) 'phinsulation is a placeholder
and MatrixInsul is my grid
phGC.Controls.Add(MatrixGC)
phSM.Controls.Add(MatrixSM)
phControls.Controls.Add(MatrixControls)
phInsulation.EnableViewState = True
phGC.EnableViewState = True
phSM.EnableViewState = True
phControls.EnableViewState = True
End Sub
Thanks in advance for your help!
Chris Thunell
(e-mail address removed)
HTML placeholders on a vb.net web form. The grids and controls within them
come up and view beautifully when the web page first starts, but when I
click on a button, and the page comes back, my dynamically created grid and
controls are not visible. Any thoughts? Please view my sample code below.
If Not ispostback then
creategrids
end if
Sub CreateGrids
'lots of code above
phInsulation.Controls.Add(MatrixInsul) 'phinsulation is a placeholder
and MatrixInsul is my grid
phGC.Controls.Add(MatrixGC)
phSM.Controls.Add(MatrixSM)
phControls.Controls.Add(MatrixControls)
phInsulation.EnableViewState = True
phGC.EnableViewState = True
phSM.EnableViewState = True
phControls.EnableViewState = True
End Sub
Thanks in advance for your help!
Chris Thunell
(e-mail address removed)