Hi Gary,
As for the nested controls in the DataGrid or other template databound
control's template cell, we can directly assign the event handler in the
aspx page source , just like :
...................
<ItemTemplate>
<asp

ropDownList AutoPostBack="True" id="lstItems"
runat="server" OnSelectedIndexChanged="lstItems_SelectedIndexChanged"
....>
.............
define a handler in the page class, declare as protected or public(can't be
private since it need to be accessable from derived page class)
protected void lstItems_SelectedIndexChanged(object source, EventArgs e)
{
............
}
And here is a former thread which discussing on the same problem, you may
have a look for detailed reference:
#Dropdownlist in template column to fire a SelectedIndexChanged event
http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&threadm=7wnkwsbiEHA.1280%
40cpmsftngxa10.phx.gbl&rnum=6&prev=/groups%3Fhl%3Den%26lr%3D%26ie%3DUTF-8%26
q%3DASP.NET%2Bdropdownlist%2Bin%2Bdatagrid%2Bsteven%2Bcheng
If you have any other questions, please feel free to post here .Thanks.
Regards,
Steven Cheng
Microsoft Online Support
Get Secure!
www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)