Okay I'm back with another issue ;-)
Platform is .NET, VB 2005...
I created a templace class that I was successfully able to add as a template
column to a GridView control - dynamically!!! So my GridView has two
'hard-wired' columns plus any number of dynamic columns.
And the template class has a checkbox control in it.
The problem is on postback. If I add two columns dynamically to the
GridView, they each appear with their checkbox. However when I come back from
a postback (such as clicking on a link on the same page), the grid comes back
with the two dynamic columns still there- but no checkboxes are present!
What gives? I am not doing any rebinding on postback because I thought I
didn't need to with 2005. Wasn't this supposed to be one the 'big'
improvements of 2005 over .Net 1.x???? No extra work to rebind dynamic
controls? I would appreciate any help, thanks. Hedge
Platform is .NET, VB 2005...
I created a templace class that I was successfully able to add as a template
column to a GridView control - dynamically!!! So my GridView has two
'hard-wired' columns plus any number of dynamic columns.
And the template class has a checkbox control in it.
The problem is on postback. If I add two columns dynamically to the
GridView, they each appear with their checkbox. However when I come back from
a postback (such as clicking on a link on the same page), the grid comes back
with the two dynamic columns still there- but no checkboxes are present!
What gives? I am not doing any rebinding on postback because I thought I
didn't need to with 2005. Wasn't this supposed to be one the 'big'
improvements of 2005 over .Net 1.x???? No extra work to rebind dynamic
controls? I would appreciate any help, thanks. Hedge