G
Guest
I've got a datagrid with some nested controls, created at design-time. The
controls themselves have no databound values.
After a few other operations on the page (selecting a few parameters, etc),
a button is clicked and the databind occurs. This part works fine. It
retreives the 4-10 rows it needs and using the itemdatabound formats
everything nicely.
What I intend to do then, is after the user has gone through the nested
controls and entered the values they want for each line item, they click a
button to bulk-submit them. This is where it all goes wrong. On the
postback, the datagrid.items.count is 0, there's no controls collection
anymore and the whole grid vanishes. Obviously, I can't get the values
anymore.
The debugger and the designer both report that viewstate is on for the
datagrid, for the panel containng the datagrid, and for the page. Is there
any conceivable reason the contents of the datagrid would suddenly disappear?
If I rebind, then of course I get the whole thing back but all my controls
get reset and I no longer have the user-submitted values. By all accounts,
all I should have to do after the user hits submit is iterate through the
datagriditems and call the appropriate findcontrol...but if the items keeps
resetting to empty, there's nothing there for me...
Any ideas? Thanks much if you've got 'em...
controls themselves have no databound values.
After a few other operations on the page (selecting a few parameters, etc),
a button is clicked and the databind occurs. This part works fine. It
retreives the 4-10 rows it needs and using the itemdatabound formats
everything nicely.
What I intend to do then, is after the user has gone through the nested
controls and entered the values they want for each line item, they click a
button to bulk-submit them. This is where it all goes wrong. On the
postback, the datagrid.items.count is 0, there's no controls collection
anymore and the whole grid vanishes. Obviously, I can't get the values
anymore.
The debugger and the designer both report that viewstate is on for the
datagrid, for the panel containng the datagrid, and for the page. Is there
any conceivable reason the contents of the datagrid would suddenly disappear?
If I rebind, then of course I get the whole thing back but all my controls
get reset and I no longer have the user-submitted values. By all accounts,
all I should have to do after the user hits submit is iterate through the
datagriditems and call the appropriate findcontrol...but if the items keeps
resetting to empty, there's nothing there for me...
Any ideas? Thanks much if you've got 'em...