I have a datagrid that contains a dropdown list that is part of an
EditItemTemplate. I need to run some code when the dropdown list builds
in order to preselect an item in the list. Preselecting the item is not
the problem. The problem is that the dropdown object is not instantiated
at the point at which the Edit button is clicked, or at any other
obvious step in the process. In other words, when a user clicks the Edit
(EditCommand) button, I want to loop through all the listitems in the
dropdown list and compare the value to a predfined value. The problem is
that I do not know where to place the code, since the control is not
instantiated. All I get are NullReferenceExcepions. Any clues? Thanks...
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!