J
John Blair
Hi,
I have a dropdownlist in a grid header template - i have autopostback on but
when i check the selectedindex in the page_load event (i have a routine
which identifies the control that caused the postback and it determines the
dropdownlist correctly) it is always 0 - i am NOT rebinding to the
dropdownlist in the page_load event i.e. only once if !postback. I also have
viewstate set to true for the control and the grid it is in! The grid is
embedded in a nested set of html tables. Any idea why the selected index is
not retained..and also when the page is redisplayed after the postback the
dropdownlist is reset to the first item in the dropdownlist?
Thanks for any help!
Any ideas?
I have a dropdownlist in a grid header template - i have autopostback on but
when i check the selectedindex in the page_load event (i have a routine
which identifies the control that caused the postback and it determines the
dropdownlist correctly) it is always 0 - i am NOT rebinding to the
dropdownlist in the page_load event i.e. only once if !postback. I also have
viewstate set to true for the control and the grid it is in! The grid is
embedded in a nested set of html tables. Any idea why the selected index is
not retained..and also when the page is redisplayed after the postback the
dropdownlist is reset to the first item in the dropdownlist?
Thanks for any help!
Any ideas?