Scott,
Thanks for the reply. Slowly I'm getting an understanding of this issue.
I have a few comments as follow up.
First, I think you left a link out of your message because you just say
"check out..." then continue with the sentence.
Second, the main problem that I'm (and others) are facing is when a
dropdownlist is in the footer. In my case I want to access the footer
when the index changes on my dropdownlist. All my dropdownlist objects
in my footer share a common
OnSelectedIndexChanged="ddl_SelectedIndexChange" command. The signature
for this type of event is an object (the sender) and a System.EventArgs
instance.
This is the problem. I don't have access to the DataGrid's Event
Handler, I have the System.EventArgs instead. My knowledge isn't
extensive enough to figure out how that can be altered, if it even can.
What I can't understand is why we are not allowed to access the footer
if I have the DataGrid object? I can refer to the DataGrid in my custom
IndexChange function but, as mentioned before, there isn't a way to
access the footer. You can access the "items" in the grid but not the
footer. This seems to be a very strange behavior since the footer is
part of the DataGrid. Again, there must be reason for why the ability
to access was left out but it's beyond me.
The only solution I can up with was to create a recursive function to
search through all the controls in a control by ID until you find the
matching ID. Using this method I can find the dropdownlist in my footer
which is in my DataGrid, but I have to loop through all the other
controls in the DataGrid first. This seems very waseful to me.
I would be very glad to have someone suggest another solution.
*** Sent via Developersdex
http://www.developersdex.com ***