(Forum Q & A Drop) How to trigger the incident of the control in the DataGrid template column?

xiaoxiao2021-03-06  20

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

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);

转载请注明原文地址:https://www.9cbs.com/read-40072.html

New Post(0)