S
strangeboy
All:
Let me first say that I've researched my problem, but I have spent way
too much time (~1.5 weeks), and finally am reaching out to the
community for help. Here's the problem:
I successfully have a nested datagrid showing (typical master/detail
arrangement) using a dynamically created datagrid for the detail
information.
Listboxes outside of the datagrid have autopostback set to true. These
list boxes build off one another to give users options available for
searching a database based on what's actually in the database (to avoid
zero result searches). As you can probably guess, when a user fires the
autopostback from one of these listboxes, the detail datagrid vanishes.
Example at: http://www.aamprogram.org/resources/lessonplan_search3.aspx
Now, having done my homework, I know why this is happening and I've
read of a number of ways to make this work, but I feel like a lion
chasing a datagrid herd. There are a lot of tutorials on how to resolve
this issue, but many of the ones that I can get working make very
expensive calls to the database for every event (postback,
itemdatabound, etc.). Can you offer some advice on using either a
placeholder, user control, etc. for the detail datagrid? Is viewstate
the way to go? I can most likely get this to work if somebody provided
a best practices, step by step, or referred me to a great tutorial. I
don't mind rewriting my code (heck, I've done that 3-4 times now), and
I'll post my current code on request (but I didn't see the value as
it's not working).
Thanks in advance for any direction.
Best regards,
Michael
Let me first say that I've researched my problem, but I have spent way
too much time (~1.5 weeks), and finally am reaching out to the
community for help. Here's the problem:
I successfully have a nested datagrid showing (typical master/detail
arrangement) using a dynamically created datagrid for the detail
information.
Listboxes outside of the datagrid have autopostback set to true. These
list boxes build off one another to give users options available for
searching a database based on what's actually in the database (to avoid
zero result searches). As you can probably guess, when a user fires the
autopostback from one of these listboxes, the detail datagrid vanishes.
Example at: http://www.aamprogram.org/resources/lessonplan_search3.aspx
Now, having done my homework, I know why this is happening and I've
read of a number of ways to make this work, but I feel like a lion
chasing a datagrid herd. There are a lot of tutorials on how to resolve
this issue, but many of the ones that I can get working make very
expensive calls to the database for every event (postback,
itemdatabound, etc.). Can you offer some advice on using either a
placeholder, user control, etc. for the detail datagrid? Is viewstate
the way to go? I can most likely get this to work if somebody provided
a best practices, step by step, or referred me to a great tutorial. I
don't mind rewriting my code (heck, I've done that 3-4 times now), and
I'll post my current code on request (but I didn't see the value as
it's not working).
Thanks in advance for any direction.
Best regards,
Michael