There are many netizens who have this problem: the button in the DataGrid template column can trigger the itemCommand event but how to trigger other events? (For example, how to put DropDownList trigger SELECTEDIDEXCHANGE event? ...) Follow it in http://blog.9cbs.net/lovecherry/archive/2005/03/24/328455.aspx We do this: Add a DropDownList in the template column
asp: DropDownList> ItemTemplate> asp: DropDownList> EditItemTemplate> asp: TemplateColumn> add events directly at the front desk in the background DropDownList2_SelectedIndexChanged then add an event can be a protected void DropDownList2_SelectedIndexChanged (Object sender, system.eventargs e) {response.write ((DropdownList) Sender .selectedItem);