C
Craig Buchanan
I dynamically add data-bound templates to a gridview in my ascx control.
while this works correctly when the gridview is databound to the
datatable, i'm having issues on postback.
i would like to iterate thru the gridview's rows, examine the databound
controls, then perform a database action. for some reason, i can't find
the controls.
i have a two templates: one that uses a label the other uses a textbox
to display data. when the InstantiateIn fires, i set the Id property
equal to 'Label_' + the name of the databound column, add the control
to the container and add the onDataBinding event handler.
what am i missing?
thanks,
Craig buchanan
while this works correctly when the gridview is databound to the
datatable, i'm having issues on postback.
i would like to iterate thru the gridview's rows, examine the databound
controls, then perform a database action. for some reason, i can't find
the controls.
i have a two templates: one that uses a label the other uses a textbox
to display data. when the InstantiateIn fires, i set the Id property
equal to 'Label_' + the name of the databound column, add the control
to the container and add the onDataBinding event handler.
what am i missing?
thanks,
Craig buchanan